org.apache.calcite.rel.core.Aggregate.AggCallBinding, org.apache.calcite.rel.core.Aggregate.GroupOLAPRel.JavaImplementor, OLAPRel.OLAPImplementor, OLAPRel.RewriteImplementoraggCalls, groupSet, groupSets, indicator, IS_NOT_GRAND_TOTAL, IS_SIMPLECONVENTION, logger| Constructor and Description |
|---|
OLAPAggregateRel(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traits,
org.apache.calcite.rel.RelNode child,
boolean indicator,
org.apache.calcite.util.ImmutableBitSet groupSet,
List<org.apache.calcite.util.ImmutableBitSet> groupSets,
List<org.apache.calcite.rel.core.AggregateCall> aggCalls) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.plan.RelOptCost |
computeSelfCost(org.apache.calcite.plan.RelOptPlanner planner,
org.apache.calcite.rel.metadata.RelMetadataQuery mq)
Since the grouping aggregate will be expanded by
AggregateMultipleExpandRule,
made the cost of grouping aggregate more expensive to use the expanded aggregates |
org.apache.calcite.rel.core.Aggregate |
copy(org.apache.calcite.plan.RelTraitSet traitSet,
org.apache.calcite.rel.RelNode input,
boolean indicator,
org.apache.calcite.util.ImmutableBitSet groupSet,
List<org.apache.calcite.util.ImmutableBitSet> groupSets,
List<org.apache.calcite.rel.core.AggregateCall> aggCalls) |
org.apache.calcite.rel.RelWriter |
explainTerms(org.apache.calcite.rel.RelWriter pw) |
ColumnRowType |
getColumnRowType()
get the row type of ColumnDesc
|
OLAPContext |
getContext()
get olap context
|
boolean |
hasSubQuery()
whether has sub query
|
EnumerableRel |
implementEnumerable(List<EnumerableRel> inputs) |
void |
implementOLAP(OLAPRel.OLAPImplementor implementor) |
void |
implementRewrite(OLAPRel.RewriteImplementor implementor) |
org.apache.calcite.plan.RelTraitSet |
replaceTraitSet(org.apache.calcite.plan.RelTrait trait)
replace RelTraitSet
|
containsDistinctCall, copy, deriveRowType, deriveRowType, estimateRowCount, getAggCallList, getGroupCount, getGroupSet, getGroupSets, getGroupType, getIndicatorCount, getNamedAggCalls, isValidchildrenAccept, getInput, getInputs, replaceInputaccept, accept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, 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, replaceInputpublic OLAPAggregateRel(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traits,
org.apache.calcite.rel.RelNode child,
boolean indicator,
org.apache.calcite.util.ImmutableBitSet groupSet,
List<org.apache.calcite.util.ImmutableBitSet> groupSets,
List<org.apache.calcite.rel.core.AggregateCall> aggCalls)
throws org.apache.calcite.rel.InvalidRelException
org.apache.calcite.rel.InvalidRelExceptionpublic org.apache.calcite.rel.core.Aggregate copy(org.apache.calcite.plan.RelTraitSet traitSet,
org.apache.calcite.rel.RelNode input,
boolean indicator,
org.apache.calcite.util.ImmutableBitSet groupSet,
List<org.apache.calcite.util.ImmutableBitSet> groupSets,
List<org.apache.calcite.rel.core.AggregateCall> aggCalls)
copy in class org.apache.calcite.rel.core.Aggregatepublic org.apache.calcite.plan.RelOptCost computeSelfCost(org.apache.calcite.plan.RelOptPlanner planner,
org.apache.calcite.rel.metadata.RelMetadataQuery mq)
AggregateMultipleExpandRule,
made the cost of grouping aggregate more expensive to use the expanded aggregatescomputeSelfCost in interface org.apache.calcite.rel.RelNodecomputeSelfCost in class org.apache.calcite.rel.core.Aggregatepublic void implementOLAP(OLAPRel.OLAPImplementor implementor)
implementOLAP in interface OLAPRelpublic void implementRewrite(OLAPRel.RewriteImplementor implementor)
implementRewrite in interface OLAPRelpublic EnumerableRel implementEnumerable(List<EnumerableRel> inputs)
implementEnumerable in interface OLAPRelpublic OLAPContext getContext()
OLAPRelgetContext in interface OLAPRelpublic ColumnRowType getColumnRowType()
OLAPRelgetColumnRowType in interface OLAPRelpublic boolean hasSubQuery()
OLAPRelhasSubQuery in interface OLAPRelpublic org.apache.calcite.plan.RelTraitSet replaceTraitSet(org.apache.calcite.plan.RelTrait trait)
OLAPRelreplaceTraitSet in interface OLAPRelpublic org.apache.calcite.rel.RelWriter explainTerms(org.apache.calcite.rel.RelWriter pw)
explainTerms in class org.apache.calcite.rel.core.AggregateCopyright © 2014–2017 Apache Software Foundation. All rights reserved.