Package org.apache.calcite.model
Class JsonMeasure
- java.lang.Object
-
- org.apache.calcite.model.JsonMeasure
-
public class JsonMeasure extends java.lang.Object
An aggregate function applied to a column (or columns) of a lattice.Occurs in a
JsonTile
, and there is a default list inJsonLattice
.- See Also:
Description of schema elements
-
-
Constructor Summary
Constructors Constructor Description JsonMeasure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ModelHandler modelHandler)
-
-
-
Field Detail
-
agg
public java.lang.String agg
The name of an aggregate function.Required. Usually
count
,sum
,min
,max
.
-
args
public java.lang.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).
-
-
Method Detail
-
accept
public void accept(ModelHandler modelHandler)
-
-