public class ObjectSqlType extends AbstractSqlType
Modifier and Type | Field and Description |
---|---|
private RelDataTypeComparability |
comparability |
private RelDataTypeFamily |
family |
private SqlIdentifier |
sqlIdentifier |
isNullable, typeName
digest, fieldList
PRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED
Constructor and Description |
---|
ObjectSqlType(SqlTypeName typeName,
SqlIdentifier sqlIdentifier,
boolean nullable,
java.util.List<? extends RelDataTypeField> fields,
RelDataTypeComparability comparability)
Constructs an object type.
|
Modifier and Type | Method and Description |
---|---|
protected void |
generateTypeString(java.lang.StringBuilder sb,
boolean withDetail)
Generates a string representation of this type.
|
RelDataTypeComparability |
getComparability() |
RelDataTypeFamily |
getFamily()
Gets a canonical object representing the family of this type.
|
SqlIdentifier |
getSqlIdentifier()
Gets the
SqlIdentifier associated with this type. |
void |
setFamily(RelDataTypeFamily family) |
getPrecedenceList, getSqlTypeName, isNullable
computeDigest, equals, extra, getCharset, getCollation, getComponentType, getField, getFieldCount, getFieldList, getFieldNames, getFullTypeString, getIntervalQualifier, getKeyType, getPrecision, getScale, getStructKind, getValueType, hashCode, isDynamicStruct, isStruct, proto, proto, proto, proto, toString
private final SqlIdentifier sqlIdentifier
private final RelDataTypeComparability comparability
private RelDataTypeFamily family
public ObjectSqlType(SqlTypeName typeName, SqlIdentifier sqlIdentifier, boolean nullable, java.util.List<? extends RelDataTypeField> fields, RelDataTypeComparability comparability)
typeName
- SqlTypeName for this type (either Distinct or
Structured)sqlIdentifier
- identifier for this typenullable
- whether type accepts nullsfields
- object attribute definitionspublic void setFamily(RelDataTypeFamily family)
public RelDataTypeComparability getComparability()
getComparability
in interface RelDataType
getComparability
in class RelDataTypeImpl
public SqlIdentifier getSqlIdentifier()
RelDataType
SqlIdentifier
associated with this type. For a
predefined type, this is a simple identifier based on
RelDataType.getSqlTypeName()
. For a user-defined type, this is a compound
identifier which uniquely names the type.getSqlIdentifier
in interface RelDataType
getSqlIdentifier
in class RelDataTypeImpl
public RelDataTypeFamily getFamily()
RelDataType
getFamily
in interface RelDataType
getFamily
in class AbstractSqlType
protected void generateTypeString(java.lang.StringBuilder sb, boolean withDetail)
RelDataTypeImpl
generateTypeString
in class RelDataTypeImpl
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;Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.