Enum Aggregate.Group

java.lang.Object
java.lang.Enum<Aggregate.Group>
org.apache.calcite.rel.core.Aggregate.Group
All Implemented Interfaces:
Serializable, Comparable<Aggregate.Group>, Constable
Enclosing class:
Aggregate

public static enum Aggregate.Group extends Enum<Aggregate.Group>
Describes the kind of roll-up.
  • Enum Constant Details

  • Method Details

    • values

      public static Aggregate.Group[] 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

      public static Aggregate.Group valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • induce

      public static Aggregate.Group induce(ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets)
    • isRollup

      public static boolean isRollup(ImmutableBitSet groupSet, List<ImmutableBitSet> groupSets)
      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 to groupSet, and each subsequent item is a subset with one fewer bit than the previous.

      See Also:
    • getRollup

      public static List<Integer> getRollup(List<ImmutableBitSet> groupSets)
      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: