public abstract class AbstractSqlType extends RelDataTypeImpl implements java.lang.Cloneable, java.io.Serializable
RelDataType
.Modifier and Type | Field and Description |
---|---|
protected boolean |
isNullable |
protected SqlTypeName |
typeName |
digest, fieldList
PRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED
Modifier | Constructor and Description |
---|---|
protected |
AbstractSqlType(SqlTypeName typeName,
boolean isNullable,
java.util.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() |
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, getFieldNames, getFullTypeString, getIntervalQualifier, getKeyType, getPrecision, getScale, getSqlIdentifier, getStructKind, getValueType, hashCode, isDynamicStruct, isStruct, proto, proto, proto, proto, toString
protected final SqlTypeName typeName
protected boolean isNullable
protected AbstractSqlType(SqlTypeName typeName, boolean isNullable, java.util.List<? extends RelDataTypeField> fields)
typeName
- Type nameisNullable
- Whether nullablefields
- Fields of type, or null if not a record typepublic SqlTypeName getSqlTypeName()
RelDataType
SqlTypeName
of this type.getSqlTypeName
in interface RelDataType
getSqlTypeName
in class RelDataTypeImpl
public boolean isNullable()
RelDataType
isNullable
in interface RelDataType
isNullable
in class RelDataTypeImpl
public RelDataTypeFamily getFamily()
RelDataType
getFamily
in interface RelDataType
getFamily
in class RelDataTypeImpl
public RelDataTypePrecedenceList getPrecedenceList()
getPrecedenceList
in interface RelDataType
getPrecedenceList
in class RelDataTypeImpl
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.