public class ObjectSqlType extends AbstractSqlType
isNullable, typeNamedigest, fieldListPRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED| Constructor and Description |
|---|
ObjectSqlType(SqlTypeName typeName,
SqlIdentifier sqlIdentifier,
boolean nullable,
List<? extends RelDataTypeField> fields,
RelDataTypeComparability comparability)
Constructs an object type.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateTypeString(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, isNullablecomputeDigest, equals, extra, getCharset, getCollation, getComponentType, getField, getFieldCount, getFieldList, getFieldNames, getFullTypeString, getIntervalQualifier, getKeyType, getPrecision, getScale, getValueType, hashCode, isStruct, proto, proto, proto, proto, toStringpublic ObjectSqlType(SqlTypeName typeName, SqlIdentifier sqlIdentifier, boolean nullable, 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 RelDataTypegetComparability in class RelDataTypeImplpublic SqlIdentifier getSqlIdentifier()
RelDataTypeSqlIdentifier 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 RelDataTypegetSqlIdentifier in class RelDataTypeImplpublic RelDataTypeFamily getFamily()
RelDataTypegetFamily in interface RelDataTypegetFamily in class AbstractSqlTypeprotected void generateTypeString(StringBuilder sb, boolean withDetail)
RelDataTypeImplgenerateTypeString in class RelDataTypeImplsb - StringBuffer 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–2015 The Apache Software Foundation. All rights reserved.