public static enum Aggregate.Group extends Enum<Aggregate.Group>
| Modifier and Type | Method and Description |
|---|---|
static List<Integer> |
getRollup(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 |
valueOf(String name)
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.
|
public static final Aggregate.Group SIMPLE
public static final Aggregate.Group ROLLUP
public static final Aggregate.Group CUBE
public static final Aggregate.Group OTHER
public static Aggregate.Group[] values()
for (Aggregate.Group c : Aggregate.Group.values()) System.out.println(c);
public static Aggregate.Group valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Aggregate.Group induce(ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets)
public static boolean isRollup(ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets)
For example, if groupSet is {2, 4, 5}, then
[{2, 4, 5], {2, 5}, {5}, {}] is a rollup. The first item is
equal to groupSet, and each subsequent item is a subset with one
fewer bit than the previous.
getRollup(List)public static List<Integer> getRollup(List<ImmutableBitSet> groupSets)
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.
isRollup(ImmutableBitSet, List)Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.