Package org.apache.calcite.materialize
Class Lattice.Column
java.lang.Object
org.apache.calcite.materialize.Lattice.Column
- All Implemented Interfaces:
Comparable<Lattice.Column>
- Direct Known Subclasses:
Lattice.BaseColumn
,Lattice.DerivedColumn
- Enclosing class:
Lattice
Column in a lattice. May be an a base column or an expression,
and may have an additional alias that is unique
within the entire lattice.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(Lattice.Column column) abstract @Nullable String
The alias that SQL would give to this expression.boolean
int
hashCode()
abstract void
toSql
(Lattice.SqlWriter writer)
-
Field Details
-
ordinal
public final int ordinalOrdinal of the column within the lattice. -
alias
Alias of the column, unique within the lattice. Derived from the column name, automatically disambiguated if necessary.
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Lattice.Column>
-
hashCode
public int hashCode() -
equals
-
toSql
-
defaultAlias
The alias that SQL would give to this expression.
-