public final class LogicalAggregate extends Aggregate
LogicalAggregate is a relational operator which eliminates
duplicates and computes totals.
Rules:
Aggregate.AggCallBinding, Aggregate.GroupaggCalls, groupSet, groupSets, indicator, IS_SIMPLEdigest, id, rowType, traitSet| Constructor and Description |
|---|
LogicalAggregate(RelInput input)
Creates a LogicalAggregate by parsing serialized output.
|
LogicalAggregate(RelOptCluster cluster,
RelNode child,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Deprecated.
|
LogicalAggregate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode child,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates a LogicalAggregate.
|
| Modifier and Type | Method and Description |
|---|---|
RelNode |
accept(RelShuttle shuttle)
Accepts a visit from a shuttle.
|
LogicalAggregate |
copy(RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates a copy of this aggregate.
|
static LogicalAggregate |
create(RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
List<ImmutableBitSet> groupSets,
List<AggregateCall> aggCalls)
Creates a LogicalAggregate.
|
computeSelfCost, containsDistinctCall, copy, deriveRowType, deriveRowType, explainTerms, getAggCallList, getGroupCount, getGroupSet, getGroupSets, getGroupType, getIndicatorCount, getRows, isDistinctchildrenAccept, getInput, getInputs, replaceInputaccept, collectVariablesSet, collectVariablesUsed, computeDigest, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesStopped, isKey, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringpublic LogicalAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode child, boolean indicator, ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets, List<AggregateCall> aggCalls)
Use create(org.apache.calcite.rel.RelNode, boolean, org.apache.calcite.util.ImmutableBitSet, java.util.List<org.apache.calcite.util.ImmutableBitSet>, java.util.List<org.apache.calcite.rel.core.AggregateCall>) unless you know what you're doing.
cluster - Cluster that this relational expression belongs tochild - input relational expressiongroupSet - Bit set of grouping fieldsgroupSets - Grouping sets, or null to use just groupSetaggCalls - Array of aggregates to compute, not null@Deprecated public LogicalAggregate(RelOptCluster cluster, RelNode child, boolean indicator, ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets, List<AggregateCall> aggCalls)
public LogicalAggregate(RelInput input)
public static LogicalAggregate create(RelNode input, boolean indicator, ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets, List<AggregateCall> aggCalls)
public LogicalAggregate copy(RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets, List<AggregateCall> aggCalls)
Aggregatecopy in class AggregatetraitSet - Traitsinput - Inputindicator - Whether row type should include indicator fields to
indicate which grouping set is active; must be true if
aggregate is not simplegroupSet - Bit set of grouping fieldsgroupSets - List of all grouping sets; null for just groupSetaggCalls - Collection of calls to aggregate functionsAggregate if any parameter differs from the value of
this Aggregate, or just this if all the parameters are
the sameAggregate.copy(org.apache.calcite.plan.RelTraitSet, java.util.List)public RelNode accept(RelShuttle shuttle)
RelNodeaccept in interface RelNodeaccept in class AbstractRelNodeshuttle - ShuttleCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.