use of io.crate.execution.dsl.projection.ProjectSetProjection in project crate by crate.
the class ProjectSet method build.
@Override
public ExecutionPlan build(PlannerContext plannerContext, Set<PlanHint> planHints, ProjectionBuilder projectionBuilder, int limit, int offset, @Nullable OrderBy order, @Nullable Integer pageSizeHint, Row params, SubQueryResults subQueryResults) {
ExecutionPlan sourcePlan = source.build(plannerContext, planHints, projectionBuilder, limit, offset, order, pageSizeHint, params, subQueryResults);
InputColumns.SourceSymbols sourceSymbols = new InputColumns.SourceSymbols(source.outputs());
List<Symbol> tableFunctionsWithInputs = InputColumns.create(this.tableFunctions, sourceSymbols);
List<Symbol> standaloneWithInputs = InputColumns.create(this.standalone, sourceSymbols);
sourcePlan.addProjection(new ProjectSetProjection(tableFunctionsWithInputs, standaloneWithInputs));
return sourcePlan;
}
Aggregations