public abstract class AbstractSqlType extends RelDataTypeImpl implements Cloneable, Serializable
RelDataType.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isNullable |
protected SqlTypeName |
typeName |
digest, fieldList, NON_NULLABLE_SUFFIXPRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSqlType(SqlTypeName typeName,
boolean isNullable,
@Nullable List<? extends RelDataTypeField> fields)
Creates an AbstractSqlType.
|
| Modifier and Type | Method and Description |
|---|---|
RelDataTypeFamily |
getFamily()
Gets a canonical object representing the family of this type.
|
RelDataTypePrecedenceList |
getPrecedenceList()
Returns the precedence list for this type.
|
SqlTypeName |
getSqlTypeName()
Gets the
SqlTypeName of this type. |
boolean |
isNullable()
Queries whether this type allows null values.
|
computeDigest, equals, extra, generateTypeString, getCharset, getCollation, getComparability, getComponentType, getField, getFieldCount, getFieldList, getFieldMap, getFieldNames, getFullTypeString, getIntervalQualifier, getKeyType, getPrecision, getScale, getSqlIdentifier, getStructKind, getValueType, hashCode, isDynamicStruct, isStruct, proto, proto, proto, proto, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitequalsSansFieldNamesprotected final SqlTypeName typeName
protected boolean isNullable
protected AbstractSqlType(SqlTypeName typeName, boolean isNullable, @Nullable List<? extends RelDataTypeField> fields)
typeName - Type nameisNullable - Whether nullablefields - Fields of type, or null if not a record typepublic SqlTypeName getSqlTypeName()
RelDataTypeImplSqlTypeName of this type.
Sub-classes must override the method to ensure the resulting value is non-nullable.getSqlTypeName in interface RelDataTypegetSqlTypeName in class RelDataTypeImplpublic boolean isNullable()
RelDataTypeisNullable in interface RelDataTypeisNullable in class RelDataTypeImplpublic RelDataTypeFamily getFamily()
RelDataTypegetFamily in interface RelDataTypegetFamily in class RelDataTypeImplpublic RelDataTypePrecedenceList getPrecedenceList()
RelDataTypegetPrecedenceList in interface RelDataTypegetPrecedenceList in class RelDataTypeImplCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.