Class MeasureSqlType

All Implemented Interfaces:
Serializable, Cloneable, RelDataType, RelDataTypeFamily

public class MeasureSqlType extends AbstractSqlType
Measure SQL type.

The type serves as a tag that the measure must be expanded into an expression before use.

See Also:
  • Field Details

    • types

      protected final com.google.common.collect.ImmutableList<? extends RelDataType> types
  • Method Details

    • getMeasureElementType

      public RelDataType getMeasureElementType()
      Description copied from interface: RelDataType
      Gets the element type if this type is a measure, otherwise null.
      Returns:
      canonical type descriptor for the value used in the measure
    • generateTypeString

      protected void generateTypeString(StringBuilder sb, boolean withDetail)
      Generates a string representation of this type.

      Generate, for example, MEASURE<INTEGER>.

      Specified by:
      generateTypeString in class RelDataTypeImpl
      Parameters:
      sb - StringBuilder into which to generate the string
      withDetail - when true, all detail information needed to compute a unique digest (and return from getFullTypeString) should be included;