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 Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRollup
(List<ImmutableBitSet> groupSets) Returns the ordered list of bits in a rollup.static Aggregate.Group
induce
(ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets) static boolean
isRollup
(ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets) Returns whether a list of sets is a rollup.static Aggregate.Group
Returns 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
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-
induce
-
isRollup
Returns whether a list of sets is a rollup.For example, if
groupSet
is{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:
-
getRollup
Returns the ordered list of bits in a rollup.For example, given a
groupSets
value[{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:
-