public class RelDataTypeFactoryImpl.JavaType extends RelDataTypeImpl
digest, fieldList, NON_NULLABLE_SUFFIXPRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED| Constructor and Description |
|---|
JavaType(Class clazz) |
JavaType(Class clazz,
boolean nullable) |
JavaType(Class clazz,
boolean nullable,
@Nullable Charset charset,
@Nullable SqlCollation collation) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateTypeString(StringBuilder sb,
boolean withDetail)
Generates a string representation of this type.
|
@Nullable Charset |
getCharset()
Gets this type's character set, or null if this type cannot carry a
character set or has no character set defined.
|
@Nullable SqlCollation |
getCollation()
Gets this type's collation, or null if this type cannot carry a collation
or has no collation defined.
|
@Nullable RelDataType |
getComponentType()
Gets the component type if this type is a collection, otherwise null.
|
RelDataTypeFamily |
getFamily()
Gets a canonical object representing the family of this type.
|
Class |
getJavaClass() |
@Nullable RelDataType |
getKeyType()
For
RelDataTypeFactoryImpl.JavaType created with Map class,
we cannot get the key type. |
SqlTypeName |
getSqlTypeName()
Gets the
SqlTypeName of this type. |
@Nullable RelDataType |
getValueType()
For
RelDataTypeFactoryImpl.JavaType created with Map class,
we cannot get the value type. |
boolean |
isNullable()
Queries whether this type allows null values.
|
computeDigest, equals, extra, getComparability, getField, getFieldCount, getFieldList, getFieldMap, getFieldNames, getFullTypeString, getIntervalQualifier, getPrecedenceList, getPrecision, getScale, getSqlIdentifier, getStructKind, hashCode, isDynamicStruct, isStruct, proto, proto, proto, proto, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitequalsSansFieldNamespublic JavaType(Class clazz)
public JavaType(Class clazz, boolean nullable)
public JavaType(Class clazz, boolean nullable, @Nullable Charset charset, @Nullable SqlCollation collation)
public Class getJavaClass()
public boolean isNullable()
RelDataTypeisNullable in interface RelDataTypeisNullable in class RelDataTypeImplpublic RelDataTypeFamily getFamily()
RelDataTypegetFamily in interface RelDataTypegetFamily in class RelDataTypeImplprotected 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;public @Nullable RelDataType getComponentType()
RelDataTypegetComponentType in interface RelDataTypegetComponentType in class RelDataTypeImplpublic @Nullable RelDataType getKeyType()
RelDataTypeFactoryImpl.JavaType created with Map class,
we cannot get the key type. Use ANY as key type.getKeyType in interface RelDataTypegetKeyType in class RelDataTypeImplpublic @Nullable RelDataType getValueType()
RelDataTypeFactoryImpl.JavaType created with Map class,
we cannot get the value type. Use ANY as value type.getValueType in interface RelDataTypegetValueType in class RelDataTypeImplpublic @Nullable Charset getCharset()
RelDataTypegetCharset in interface RelDataTypegetCharset in class RelDataTypeImplpublic @Nullable SqlCollation getCollation()
RelDataTypegetCollation in interface RelDataTypegetCollation in class RelDataTypeImplpublic 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 RelDataTypeImplCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.