Package org.apache.calcite.rel.mutable
Class MutableAggregate
- java.lang.Object
-
- org.apache.calcite.rel.mutable.MutableRel
-
- org.apache.calcite.rel.mutable.MutableSingleRel
-
- org.apache.calcite.rel.mutable.MutableAggregate
-
public class MutableAggregate extends MutableSingleRel
Mutable equivalent ofAggregate
.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<AggregateCall>
aggCalls
ImmutableBitSet
groupSet
com.google.common.collect.ImmutableList<ImmutableBitSet>
groupSets
-
Fields inherited from class org.apache.calcite.rel.mutable.MutableSingleRel
input
-
Fields inherited from class org.apache.calcite.rel.mutable.MutableRel
cluster, ordinalInParent, PAIRWISE_STRING_EQUIVALENCE, parent, rowType, STRING_EQUIVALENCE, type
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MutableAggregate(MutableRel input, RelDataType rowType, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableRel
clone()
java.lang.StringBuilder
digest(java.lang.StringBuilder buf)
boolean
equals(java.lang.Object obj)
Aggregate.Group
getGroupType()
int
hashCode()
static MutableAggregate
of(MutableRel input, ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a MutableAggregate.-
Methods inherited from class org.apache.calcite.rel.mutable.MutableSingleRel
childrenAccept, getInput, getInputs, setInput
-
Methods inherited from class org.apache.calcite.rel.mutable.MutableRel
deep, getParent, replaceInParent, toString
-
-
-
-
Field Detail
-
groupSet
public final ImmutableBitSet groupSet
-
groupSets
public final com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets
-
aggCalls
public final java.util.List<AggregateCall> aggCalls
-
-
Constructor Detail
-
MutableAggregate
private MutableAggregate(MutableRel input, RelDataType rowType, ImmutableBitSet groupSet, java.util.List<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
-
-
Method Detail
-
of
public static MutableAggregate of(MutableRel input, ImmutableBitSet groupSet, com.google.common.collect.ImmutableList<ImmutableBitSet> groupSets, java.util.List<AggregateCall> aggCalls)
Creates a MutableAggregate.- Parameters:
input
- Input relational expressiongroupSet
- Bit set of grouping fieldsgroupSets
- List of all grouping sets; null for justgroupSet
aggCalls
- Collection of calls to aggregate functions
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
digest
public java.lang.StringBuilder digest(java.lang.StringBuilder buf)
- Specified by:
digest
in classMutableRel
-
getGroupType
public Aggregate.Group getGroupType()
-
clone
public MutableRel clone()
- Specified by:
clone
in classMutableRel
-
-