public class BeamAggregationRel extends Aggregate implements BeamRelNode
BeamRelNode
to replace a Aggregate
node.Constructor and Description |
---|
BeamAggregationRel(RelOptCluster cluster,
RelTraitSet traits,
RelNode child,
boolean indicator,
ImmutableBitSet groupSet,
java.util.List<ImmutableBitSet> groupSets,
java.util.List<AggregateCall> aggCalls,
WindowFn windowFn,
Trigger trigger,
int windowFieldIdx,
Duration allowedLatence) |
Modifier and Type | Method and Description |
---|---|
PCollection<BeamRecord> |
buildBeamPipeline(PCollectionTuple inputPCollections,
BeamSqlEnv sqlEnv)
A
BeamRelNode is a recursive structure, the
BeamQueryPlanner visits it with a DFS(Depth-First-Search)
algorithm. |
Aggregate |
copy(RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
java.util.List<ImmutableBitSet> groupSets,
java.util.List<AggregateCall> aggCalls) |
RelWriter |
explainTerms(RelWriter pw) |
void |
setTrigger(Trigger trigger) |
void |
setWindowFn(WindowFn windowFn) |
public BeamAggregationRel(RelOptCluster cluster, RelTraitSet traits, RelNode child, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls, WindowFn windowFn, Trigger trigger, int windowFieldIdx, Duration allowedLatence)
public PCollection<BeamRecord> buildBeamPipeline(PCollectionTuple inputPCollections, BeamSqlEnv sqlEnv) throws java.lang.Exception
BeamRelNode
BeamRelNode
is a recursive structure, the
BeamQueryPlanner
visits it with a DFS(Depth-First-Search)
algorithm.buildBeamPipeline
in interface BeamRelNode
java.lang.Exception
public Aggregate copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
public void setWindowFn(WindowFn windowFn)
public void setTrigger(Trigger trigger)
public RelWriter explainTerms(RelWriter pw)