Package org.apache.calcite.sql.type
Class MultisetSqlType
java.lang.Object
org.apache.calcite.rel.type.RelDataTypeImpl
org.apache.calcite.sql.type.AbstractSqlType
org.apache.calcite.sql.type.MultisetSqlType
- All Implemented Interfaces:
Serializable,Cloneable,RelDataType,RelDataTypeFamily
MultisetSqlType represents a standard SQL2003 multiset type.
- See Also:
-
Field Summary
Fields inherited from class org.apache.calcite.sql.type.AbstractSqlType
isNullable, typeNameFields inherited from class org.apache.calcite.rel.type.RelDataTypeImpl
digest, fieldList, NON_NULLABLE_SUFFIXFields inherited from interface org.apache.calcite.rel.type.RelDataType
PRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED -
Constructor Summary
ConstructorsConstructorDescriptionMultisetSqlType(RelDataType elementType, boolean isNullable) Constructs a new MultisetSqlType. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgenerateTypeString(StringBuilder sb, boolean withDetail) Generates a string representation of this type.Gets the component type if this type is a collection, otherwise null.Gets a canonical object representing the family of this type.Returns the precedence list for this type.Methods inherited from class org.apache.calcite.sql.type.AbstractSqlType
getSqlTypeName, isNullableMethods inherited from class org.apache.calcite.rel.type.RelDataTypeImpl
computeDigest, equals, extra, getCharset, getCollation, getComparability, getField, getFieldCount, getFieldList, getFieldMap, getFieldNames, getFullTypeString, getIntervalQualifier, getKeyType, getPrecision, getScale, getSqlIdentifier, getStructKind, getValueType, hashCode, isDynamicStruct, isStruct, proto, proto, proto, proto, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.calcite.rel.type.RelDataType
equalsSansFieldNames, equalsSansFieldNamesAndNullability, getMeasureElementType, isMeasure
-
Constructor Details
-
MultisetSqlType
Constructs a new MultisetSqlType. This constructor should only be called from a factory method.
-
-
Method Details
-
generateTypeString
Description copied from class:RelDataTypeImplGenerates a string representation of this type.- Specified by:
generateTypeStringin 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;
-
getComponentType
Description copied from interface:RelDataTypeGets the component type if this type is a collection, otherwise null.- Specified by:
getComponentTypein interfaceRelDataType- Overrides:
getComponentTypein classRelDataTypeImpl- Returns:
- canonical type descriptor for components
-
getFamily
Description copied from interface:RelDataTypeGets a canonical object representing the family of this type. Two values can be compared if and only if their types are in the same family.- Specified by:
getFamilyin interfaceRelDataType- Overrides:
getFamilyin classAbstractSqlType- Returns:
- canonical object representing type family, never null
-
getPrecedenceList
Description copied from interface:RelDataTypeReturns the precedence list for this type.- Specified by:
getPrecedenceListin interfaceRelDataType- Overrides:
getPrecedenceListin classAbstractSqlType
-