org.apache.calcite.rel.core.Collect Java Examples
The following examples show how to use
org.apache.calcite.rel.core.Collect.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PostOrderRelNodeVisitor.java From streamline with Apache License 2.0 | 5 votes |
public final T traverse(RelNode n) throws Exception { List<T> inputStreams = new ArrayList<>(); for (RelNode input : n.getInputs()) { inputStreams.add(traverse(input)); } if (n instanceof Aggregate) { return visitAggregate((Aggregate) n, inputStreams); } else if (n instanceof Calc) { return visitCalc((Calc) n, inputStreams); } else if (n instanceof Collect) { return visitCollect((Collect) n, inputStreams); } else if (n instanceof Correlate) { return visitCorrelate((Correlate) n, inputStreams); } else if (n instanceof Delta) { return visitDelta((Delta) n, inputStreams); } else if (n instanceof Exchange) { return visitExchange((Exchange) n, inputStreams); } else if (n instanceof Project) { return visitProject((Project) n, inputStreams); } else if (n instanceof Filter) { return visitFilter((Filter) n, inputStreams); } else if (n instanceof Sample) { return visitSample((Sample) n, inputStreams); } else if (n instanceof Sort) { return visitSort((Sort) n, inputStreams); } else if (n instanceof TableModify) { return visitTableModify((TableModify) n, inputStreams); } else if (n instanceof TableScan) { return visitTableScan((TableScan) n, inputStreams); } else if (n instanceof Uncollect) { return visitUncollect((Uncollect) n, inputStreams); } else if (n instanceof Window) { return visitWindow((Window) n, inputStreams); } else if (n instanceof Join) { return visitJoin((Join) n, inputStreams); } else { return defaultValue(n, inputStreams); } }
Example #2
Source File: EnumerableCollectRule.java From calcite with Apache License 2.0 | 5 votes |
public RelNode convert(RelNode rel) { final Collect collect = (Collect) rel; final RelTraitSet traitSet = collect.getTraitSet().replace(EnumerableConvention.INSTANCE); final RelNode input = collect.getInput(); return new EnumerableCollect( rel.getCluster(), traitSet, convert(input, input.getTraitSet().replace(EnumerableConvention.INSTANCE)), collect.getFieldName()); }
Example #3
Source File: RelStructuredTypeFlattener.java From Bats with Apache License 2.0 | 4 votes |
public void rewriteRel(Collect rel) { rewriteGeneric(rel); }
Example #4
Source File: PostOrderRelNodeVisitor.java From streamline with Apache License 2.0 | 4 votes |
public T visitCollect(Collect collect, List<T> inputStreams) throws Exception { return defaultValue(collect, inputStreams); }
Example #5
Source File: EnumerableCollectRule.java From calcite with Apache License 2.0 | 4 votes |
EnumerableCollectRule() { super(Collect.class, Convention.NONE, EnumerableConvention.INSTANCE, "EnumerableCollectRule"); }
Example #6
Source File: RelStructuredTypeFlattener.java From calcite with Apache License 2.0 | 4 votes |
public void rewriteRel(Collect rel) { rewriteGeneric(rel); }
Example #7
Source File: Nodes.java From calcite with Apache License 2.0 | 4 votes |
public void visit(Collect collect) { node = new CollectNode(this, collect); }
Example #8
Source File: CollectNode.java From calcite with Apache License 2.0 | 4 votes |
public CollectNode(Compiler compiler, Collect rel) { super(compiler, rel); }