Package org.apache.calcite.sql.type
Class MeasureSqlType
java.lang.Object
org.apache.calcite.rel.type.RelDataTypeImpl
org.apache.calcite.sql.type.AbstractSqlType
org.apache.calcite.sql.type.MeasureSqlType
- All Implemented Interfaces:
Serializable
,Cloneable
,RelDataType
,RelDataTypeFamily
Measure SQL type.
The type serves as a tag that the measure must be expanded into an expression before use.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.google.common.collect.ImmutableList<? extends RelDataType>
Fields inherited from class org.apache.calcite.sql.type.AbstractSqlType
isNullable, typeName
Fields inherited from class org.apache.calcite.rel.type.RelDataTypeImpl
digest, fieldList, NON_NULLABLE_SUFFIX
Fields inherited from interface org.apache.calcite.rel.type.RelDataType
PRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
generateTypeString
(StringBuilder sb, boolean withDetail) Generates a string representation of this type.Gets the element type if this type is a measure, otherwise null.Methods inherited from class org.apache.calcite.sql.type.AbstractSqlType
getFamily, getPrecedenceList, getSqlTypeName, isNullable
Methods inherited from class org.apache.calcite.rel.type.RelDataTypeImpl
computeDigest, equals, extra, getCharset, getCollation, getComparability, getComponentType, getField, getFieldCount, getFieldList, getFieldMap, getFieldNames, getFullTypeString, getIntervalQualifier, getKeyType, getPrecision, getScale, getSqlIdentifier, getStructKind, getValueType, hashCode, isDynamicStruct, isStruct, proto, proto, proto, proto, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.calcite.rel.type.RelDataType
equalsSansFieldNames, equalsSansFieldNamesAndNullability, isMeasure
-
Field Details
-
types
-
-
Method Details
-
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
Generates a string representation of this type.Generate, for example,
MEASURE<INTEGER>
.- Specified by:
generateTypeString
in classRelDataTypeImpl
- Parameters:
sb
- StringBuilder into which to generate the stringwithDetail
- when true, all detail information needed to compute a unique digest (and return from getFullTypeString) should be included;
-