@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { List<PhysicalOperator> inputPops = Lists.newArrayList(); for (int i = 0; i < this.getInputs().size(); i++) { inputPops.add( ((Prel)this.getInputs().get(i)).getPhysicalOperator(creator)); } UnionAll unionall = new UnionAll(inputPops); return creator.addMetadata(this, unionall); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { List<PhysicalOperator> inputPops = Lists.newArrayList(); for (int i = 0; i < this.getInputs().size(); i++) { inputPops.add( ((Prel)this.getInputs().get(i)).getPhysicalOperator(creator)); } ///TODO: change this to UnionDistinct once implemented end-to-end.. UnionAll unionAll = new UnionAll(inputPops); return creator.addMetadata(this, unionAll); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { Prel child = (Prel) this.getInput(); StreamingAggregate g = new StreamingAggregate(child.getPhysicalOperator(creator), keys, aggExprs, 1.0f); return creator.addMetadata(this, g); }
public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { Prel child = (Prel) this.getInput(); PhysicalOperator childPOP = child.getPhysicalOperator(creator); RoundRobinExchange g = new RoundRobinExchange(childPOP); return creator.addMetadata(this, g); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { Prel child = (Prel) this.getInput(); PhysicalOperator g = new WriterCommitterPOP(tempLocation, finalLocation, userName, plugin, child.getPhysicalOperator(creator)); return creator.addMetadata(this, g); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { ConvertFromJsonPOP p = new ConvertFromJsonPOP(((Prel) getInput()).getPhysicalOperator(creator), conversions); return creator.addMetadata(this, p); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { SelectionVectorRemover r = new SelectionVectorRemover( ((Prel)getInput()).getPhysicalOperator(creator)); return creator.addMetadata(this, r); }
public static PhysicalOperator convertToPop(SqlHandlerConfig config, Prel prel) throws IOException { PhysicalPlanCreator creator = new PhysicalPlanCreator(config.getContext(), PrelSequencer.getIdMap(prel)); PhysicalOperator op = prel.getPhysicalOperator(creator); return op; }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { Prel child = (Prel) this.getInput(); PhysicalOperator childPOP = child.getPhysicalOperator(creator); UnorderedMuxExchange p = new UnorderedMuxExchange(childPOP); return creator.addMetadata(this, p); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { Prel child = (Prel) this.getInput(); PhysicalOperator childPOP = child.getPhysicalOperator(creator); UnionExchange g = new UnionExchange(childPOP); return creator.addMetadata(this, g); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { ComplexToJson p = new ComplexToJson(((Prel) getInput()).getPhysicalOperator(creator)); return creator.addMetadata(this, p); }
public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { Prel child = (Prel) this.getInput(); PhysicalOperator childPOP = child.getPhysicalOperator(creator); BroadcastExchange g = new BroadcastExchange(childPOP); return creator.addMetadata(this, g); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { PhysicalOperator child = ((Prel) this.getInput()).getPhysicalOperator(creator); HashAggregate g = new HashAggregate(child, keys, aggExprs, canVectorize(creator, child), 1.0f); return creator.addMetadata(this, g); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { Prel child = (Prel) this.getInput(); PhysicalOperator g = getCreateTableEntry().getWriter(child.getPhysicalOperator(creator)); return creator.addMetadata(this, g); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { Prel child = (Prel) this.getInput(); PhysicalOperator childPOP = child.getPhysicalOperator(creator); DictionaryLookupPOP dictionaryLookupPOP = new DictionaryLookupPOP(creator.getContext().getCatalogService(), childPOP, dictionaryEncodedFields); return creator.addMetadata(this, dictionaryLookupPOP); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { Prel child = (Prel) this.getInput(); PhysicalOperator childPOP = child.getPhysicalOperator(creator); com.dremio.exec.physical.config.Sort g = new ExternalSort(childPOP, PrelUtil.getOrdering(this.collation, getInput().getRowType()), false); return creator.addMetadata(this, g); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { Prel child = (Prel) this.getInput(); PhysicalOperator childPOP = child.getPhysicalOperator(creator); Project p = new Project(this.getProjectExpressions(new ParseContext(PrelUtil.getSettings(getCluster()))), childPOP); return creator.addMetadata(this, p); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { Prel child = (Prel) this.getInput(); PhysicalOperator childPOP = child.getPhysicalOperator(creator); com.dremio.exec.physical.config.Project p = new com.dremio.exec.physical.config.Project( this.getProjectExpressions(new ParseContext(PrelUtil.getSettings(getCluster()))), childPOP); return creator.addMetadata(this, p); }
@Override public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { Prel child = (Prel) this.getInput(); PhysicalOperator childPOP = child.getPhysicalOperator(creator); FlattenPOP f = new FlattenPOP(childPOP, (SchemaPath) getFlattenExpression(new ParseContext(PrelUtil.getSettings(getCluster())))); return creator.addMetadata(this, f); }
public PhysicalOperator getPhysicalOperator(PhysicalPlanCreator creator) throws IOException { Prel child = (Prel) this.getInput(); PhysicalOperator childPOP = child.getPhysicalOperator(creator); HashToMergeExchange g = new HashToMergeExchange(childPOP, HashPrelUtil.getHashExpression(this.distFields, getInput().getRowType()), PrelUtil.getOrdering(this.collation, getInput().getRowType())); return creator.addMetadata(this, g); }