public class MapSqlType extends AbstractSqlType
| Modifier and Type | Field and Description |
|---|---|
private RelDataType |
keyType |
private RelDataType |
valueType |
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, getStructKind, hashCode, isDynamicStruct, isStruct, proto, proto, proto, proto, toStringprivate final RelDataType keyType
private final RelDataType valueType
public 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–2018 The Apache Software Foundation. All rights reserved.