public class MapSqlType extends AbstractSqlType
isNullable, typeNamedigest, fieldListPRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED| Constructor and Description |
|---|
MapSqlType(RelDataType keyType,
RelDataType valueType,
boolean isNullable)
Creates a MapSqlType.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateTypeString(StringBuilder sb,
boolean withDetail)
Generates a string representation of this type.
|
RelDataTypeFamily |
getFamily()
Gets a canonical object representing the family of this type.
|
RelDataType |
getKeyType()
Gets the key type if this type is a map, otherwise null.
|
RelDataType |
getValueType()
Gets the value type if this type is a map, otherwise null.
|
getPrecedenceList, getSqlTypeName, isNullablecomputeDigest, equals, extra, getCharset, getCollation, getComparability, getComponentType, getField, getFieldCount, getFieldList, getFieldNames, getFullTypeString, getIntervalQualifier, getPrecision, getScale, getSqlIdentifier, hashCode, isStruct, proto, proto, proto, proto, toStringpublic MapSqlType(RelDataType keyType, RelDataType valueType, boolean isNullable)
public RelDataType getValueType()
RelDataTypegetValueType in interface RelDataTypegetValueType in class RelDataTypeImplpublic RelDataType getKeyType()
RelDataTypegetKeyType in interface RelDataTypegetKeyType in class RelDataTypeImplprotected 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;public RelDataTypeFamily getFamily()
RelDataTypegetFamily in interface RelDataTypegetFamily in class AbstractSqlTypeCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.