public abstract class AggPrelBase extends DrillAggregateRelBase implements Prel
Modifier and Type | Class and Description |
---|---|
static class |
AggPrelBase.OperatorPhase |
class |
AggPrelBase.SqlSumCountAggFunction
Specialized aggregate function for SUMing the COUNTs.
|
Modifier and Type | Field and Description |
---|---|
protected List<NamedExpression> |
aggExprs |
protected List<NamedExpression> |
keys |
protected AggPrelBase.OperatorPhase |
operPhase |
protected List<org.apache.calcite.rel.core.AggregateCall> |
phase2AggCallList |
aggCalls, groupSet, groupSets, indicator, IS_NOT_GRAND_TOTAL, IS_SIMPLE, NO_INDICATOR
DRILL_PHYSICAL
Constructor and Description |
---|
AggPrelBase(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traits,
org.apache.calcite.rel.RelNode child,
org.apache.calcite.util.ImmutableBitSet groupSet,
List<org.apache.calcite.util.ImmutableBitSet> groupSets,
List<org.apache.calcite.rel.core.AggregateCall> aggCalls,
AggPrelBase.OperatorPhase phase) |
Modifier and Type | Method and Description |
---|---|
<T,X,E extends Throwable> |
accept(PrelVisitor<T,X,E> logicalVisitor,
X value) |
protected void |
createKeysAndExprs() |
List<NamedExpression> |
getAggExprs() |
List<NamedExpression> |
getKeys() |
AggPrelBase.OperatorPhase |
getOperatorPhase() |
List<org.apache.calcite.rel.core.AggregateCall> |
getPhase2AggCalls() |
Iterator<Prel> |
iterator() |
boolean |
needsFinalColumnReordering() |
Prel |
prepareForLateralUnnestPipeline(List<org.apache.calcite.rel.RelNode> children)
If the operator is in Lateral/Unnest pipeline, then it generates a new operator which knows how to process
the rows accordingly during execution.
|
protected LogicalExpression |
toDrill(org.apache.calcite.rel.core.AggregateCall call,
List<String> fn) |
computeHashAggCost, computeLogicalAggCost, estimateRowCount
checkIndicator, computeSelfCost, containsDistinctCall, copy, copy, copy, deriveRowType, deriveRowType, explainTerms, getAggCallList, getGroupCount, getGroupSet, getGroupSets, getGroupType, getIndicatorCount, getNamedAggCalls, isNotGrandTotal, isSimple, isValid, noIndicator
childrenAccept, getInput, getInputs, replaceInput
accept, accept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, equals, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, hashCode, isDistinct, isKey, isValid, metadata, onRegister, recomputeDigest, register, sole, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getEncoding, getPhysicalOperator, getSupportedEncodings
accept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, computeSelfCost, copy, estimateRowCount, explain, getChildExps, getCollationList, getConvention, getCorrelVariable, getExpectedInputRowType, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTable, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, replaceInput
getCluster, getDescription, getDigest, getId, getTraitSet
forEach, spliterator
protected AggPrelBase.OperatorPhase operPhase
protected List<NamedExpression> keys
protected List<NamedExpression> aggExprs
protected List<org.apache.calcite.rel.core.AggregateCall> phase2AggCallList
public AggPrelBase(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traits, org.apache.calcite.rel.RelNode child, org.apache.calcite.util.ImmutableBitSet groupSet, List<org.apache.calcite.util.ImmutableBitSet> groupSets, List<org.apache.calcite.rel.core.AggregateCall> aggCalls, AggPrelBase.OperatorPhase phase) throws org.apache.calcite.rel.InvalidRelException
org.apache.calcite.rel.InvalidRelException
public AggPrelBase.OperatorPhase getOperatorPhase()
public List<NamedExpression> getKeys()
public List<NamedExpression> getAggExprs()
public List<org.apache.calcite.rel.core.AggregateCall> getPhase2AggCalls()
protected void createKeysAndExprs()
protected LogicalExpression toDrill(org.apache.calcite.rel.core.AggregateCall call, List<String> fn)
public <T,X,E extends Throwable> T accept(PrelVisitor<T,X,E> logicalVisitor, X value) throws E extends Throwable
public boolean needsFinalColumnReordering()
needsFinalColumnReordering
in interface Prel
public Prel prepareForLateralUnnestPipeline(List<org.apache.calcite.rel.RelNode> children)
Prel
prepareForLateralUnnestPipeline
in interface Prel
Copyright © 1970 The Apache Software Foundation. All rights reserved.