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_INDICATORDRILL_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, estimateRowCountcheckIndicator, computeSelfCost, containsDistinctCall, copy, copy, copy, deriveRowType, deriveRowType, explainTerms, getAggCallList, getGroupCount, getGroupSet, getGroupSets, getGroupType, getIndicatorCount, getNamedAggCalls, isNotGrandTotal, isSimple, isValid, noIndicatorchildrenAccept, getInput, getInputs, replaceInputaccept, 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetEncoding, getPhysicalOperator, getSupportedEncodingsaccept, 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, replaceInputgetCluster, getDescription, getDigest, getId, getTraitSetforEach, spliteratorprotected 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.InvalidRelExceptionpublic 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 Prelpublic Prel prepareForLateralUnnestPipeline(List<org.apache.calcite.rel.RelNode> children)
PrelprepareForLateralUnnestPipeline in interface PrelCopyright © 2021 The Apache Software Foundation. All rights reserved.