Class JsonMeasure

java.lang.Object
org.apache.calcite.model.JsonMeasure

public class JsonMeasure extends Object
An aggregate function applied to a column (or columns) of a lattice.

Occurs in a JsonTile, and there is a default list in JsonLattice.

See Also:
  • Field Details

    • agg

      public final String agg
      The name of an aggregate function.

      Required. Usually count, sum, min, max.

    • args

      public final @Nullable Object args
      Arguments to the measure.

      Valid values are:

      • Not specified: no arguments
      • null: no arguments
      • Empty list: no arguments
      • String: single argument, the name of a lattice column
      • List: multiple arguments, each a column name

      Unlike lattice dimensions, measures can not be specified in qualified format, ["table", "column"]. When you define a lattice, make sure that each column you intend to use as a measure has a unique name within the lattice (using "AS alias" if necessary).

  • Constructor Details

    • JsonMeasure

      public JsonMeasure(String agg, @Nullable Object args)
  • Method Details