public class ObjectSqlType extends AbstractSqlType
isNullable, typeNamedigest, fieldList, NON_NULLABLE_SUFFIXPRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED| Constructor and Description |
|---|
ObjectSqlType(SqlTypeName typeName,
@Nullable 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()
Returns the category of comparison operators that make sense when applied
to values of this type.
|
RelDataTypeFamily |
getFamily()
Gets a canonical object representing the family of this type.
|
@Nullable SqlIdentifier |
getSqlIdentifier()
Gets the
SqlIdentifier associated with this type. |
void |
setFamily(RelDataTypeFamily family) |
getPrecedenceList, getSqlTypeName, isNullablecomputeDigest, equals, extra, getCharset, getCollation, getComponentType, getField, getFieldCount, getFieldList, getFieldMap, getFieldNames, getFullTypeString, getIntervalQualifier, getKeyType, getPrecision, getScale, getStructKind, getValueType, hashCode, isDynamicStruct, isStruct, proto, proto, proto, proto, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitequalsSansFieldNamespublic ObjectSqlType(SqlTypeName typeName, @Nullable 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()
RelDataTypegetComparability in interface RelDataTypegetComparability in class RelDataTypeImplpublic @Nullable 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 - 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-2022 Apache Software Foundation. All Rights Reserved.