Class Subtotals

java.lang.Object
org.apache.druid.sql.calcite.rel.Subtotals

public class Subtotals extends Object
Represents the Druid groupBy query concept of subtotals, which is similar to GROUPING SETS.
  • Method Details

    • getSubtotals

      public List<it.unimi.dsi.fastutil.ints.IntList> getSubtotals()
    • toSubtotalsSpec

      @Nullable public List<List<String>> toSubtotalsSpec(List<DimensionSpec> dimensions)
    • hasEffect

      public boolean hasEffect(List<DimensionSpec> dimensionSpecs)
      Returns whether this subtotals spec has an effect, and cannot be ignored.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object