Package org.apache.calcite.materialize
Class Lattice.Measure
java.lang.Object
org.apache.calcite.materialize.Lattice.Measure
- All Implemented Interfaces:
Comparable<Lattice.Measure>
- Enclosing class:
Lattice
A measure within a
Lattice
.
It is immutable.
Examples: SUM(products.weight), COUNT() (means "COUNT(*")), COUNT(DISTINCT customer.id).
-
Field Summary
Modifier and TypeFieldDescriptionfinal SqlAggFunction
final com.google.common.collect.ImmutableList<Lattice.Column>
final String
final boolean
final @Nullable String
-
Constructor Summary
ConstructorDescriptionMeasure
(SqlAggFunction agg, boolean distinct, @Nullable String name, Iterable<Lattice.Column> args) -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of distinct argument ordinals.Returns a list of argument ordinals.int
compareTo
(Lattice.Measure measure) boolean
int
hashCode()
toString()
-
Field Details
-
agg
-
distinct
public final boolean distinct -
name
-
args
-
digest
-
-
Constructor Details
-
Measure
public Measure(SqlAggFunction agg, boolean distinct, @Nullable String name, Iterable<Lattice.Column> args)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Lattice.Measure>
-
toString
-
hashCode
public int hashCode() -
equals
-
argBitSet
Returns the set of distinct argument ordinals. -
argOrdinals
Returns a list of argument ordinals.
-