public final class LogicalAggregate extends Aggregate
LogicalAggregate
is a relational operator which eliminates
duplicates and computes totals.
Rules:
Aggregate.AggCallBinding, Aggregate.Group
RelNode.Context
aggCalls, groupSet, groupSets, indicator, IS_NOT_GRAND_TOTAL, IS_SIMPLE, NO_INDICATOR
digest, id, rowType, traitSet
Constructor and Description |
---|
LogicalAggregate(RelInput input)
Creates a LogicalAggregate by parsing serialized output.
|
LogicalAggregate(RelOptCluster cluster,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
java.util.List<ImmutableBitSet> groupSets,
java.util.List<AggregateCall> aggCalls)
Deprecated.
|
LogicalAggregate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
java.util.List<ImmutableBitSet> groupSets,
java.util.List<AggregateCall> aggCalls)
Deprecated.
|
LogicalAggregate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
ImmutableBitSet groupSet,
java.util.List<ImmutableBitSet> groupSets,
java.util.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,
ImmutableBitSet groupSet,
java.util.List<ImmutableBitSet> groupSets,
java.util.List<AggregateCall> aggCalls)
Creates a copy of this aggregate.
|
private static LogicalAggregate |
create_(RelNode input,
ImmutableBitSet groupSet,
java.util.List<ImmutableBitSet> groupSets,
java.util.List<AggregateCall> aggCalls) |
static LogicalAggregate |
create(RelNode input,
boolean indicator,
ImmutableBitSet groupSet,
java.util.List<ImmutableBitSet> groupSets,
java.util.List<AggregateCall> aggCalls)
Deprecated.
|
static LogicalAggregate |
create(RelNode input,
ImmutableBitSet groupSet,
java.util.List<ImmutableBitSet> groupSets,
java.util.List<AggregateCall> aggCalls)
Creates a LogicalAggregate.
|
checkIndicator, computeSelfCost, containsDistinctCall, copy, copy, deriveRowType, deriveRowType, estimateRowCount, explainTerms, getAggCallList, getGroupCount, getGroupSet, getGroupSets, getGroupType, getIndicatorCount, getNamedAggCalls, isNotGrandTotal, isSimple, isValid, noIndicator
childrenAccept, getInput, getInputs, replaceInput
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, toString
public LogicalAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Use create(org.apache.calcite.rel.RelNode, 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 totraitSet
- Traitsinput
- Input relational expressiongroupSet
- Bit set of grouping fieldsgroupSets
- Grouping sets, or null to use just groupSet
aggCalls
- Array of aggregates to compute, not null@Deprecated public LogicalAggregate(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
@Deprecated public LogicalAggregate(RelOptCluster cluster, RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
public LogicalAggregate(RelInput input)
public static LogicalAggregate create(RelNode input, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
@Deprecated public static LogicalAggregate create(RelNode input, boolean indicator, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
private static LogicalAggregate create_(RelNode input, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
public LogicalAggregate copy(RelTraitSet traitSet, RelNode input, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Aggregate
copy
in class Aggregate
traitSet
- Traitsinput
- InputgroupSet
- Bit set of grouping fieldsgroupSets
- List of all grouping sets; null for just groupSet
aggCalls
- 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)
RelNode
accept
in interface RelNode
accept
in class AbstractRelNode
shuttle
- ShuttleCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.