Package org.apache.calcite.rel.core
Enum Aggregate.Group
- All Implemented Interfaces:
- Serializable,- Comparable<Aggregate.Group>,- Constable
- Enclosing class:
- Aggregate
Describes the kind of roll-up.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptiongetRollup(List<ImmutableBitSet> groupSets) Returns the ordered list of bits in a rollup.static Aggregate.Groupinduce(ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets) static booleanisRollup(ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets) Returns whether a list of sets is a rollup.static Aggregate.GroupReturns the enum constant of this type with the specified name.static Aggregate.Group[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
SIMPLE
- 
ROLLUP
- 
CUBE
- 
OTHER
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
induce
- 
isRollupReturns whether a list of sets is a rollup.For example, if groupSetis{2, 4, 5}, then[{2, 4, 5], {2, 5}, {5}, {}]is a rollup. The first item is equal togroupSet, and each subsequent item is a subset with one fewer bit than the previous.- See Also:
 
- 
getRollupReturns the ordered list of bits in a rollup.For example, given a groupSetsvalue[{2, 4, 5], {2, 5}, {5}, {}], returns the list[5, 2, 4], which are the succession of bits added to each of the sets starting with the empty set.- See Also:
 
 
-