@PublicEvolving public final class MapType extends DataType
NULL) to values (including
NULL). A map cannot contain duplicate keys; each key can map to at most one value. There
is no restriction of key types; it is the responsibility of the user to ensure uniqueness. The
map type is an extension to the SQL standard.| 构造器和说明 |
|---|
MapType(boolean isNullable,
DataType keyType,
DataType valueType) |
MapType(DataType keyType,
DataType valueType) |
| 限定符和类型 | 方法和说明 |
|---|---|
<R> R |
accept(DataTypeVisitor<R> visitor) |
String |
asSerializableString()
Returns a string that fully serializes this instance.
|
String |
asSummaryString()
Returns a string that summarizes this type for printing to a console.
|
DataType |
copy(boolean isNullable)
Returns a deep copy of this type with possibly different nullability.
|
boolean |
equals(Object o) |
List<DataType> |
getChildren() |
DataType |
getKeyType() |
DataType |
getValueType() |
int |
hashCode() |
copy, getTypeRoot, is, is, isAnyOf, isAnyOf, isNullable, notNull, nullable, toString, withNullabilitypublic DataType getKeyType()
public DataType getValueType()
public DataType copy(boolean isNullable)
DataTypepublic String asSummaryString()
DataTypeUse DataType.asSerializableString() for a type string that fully serializes this instance.
asSummaryString 在类中 DataTypepublic String asSerializableString()
DataTypeasSerializableString 在类中 DataTypepublic List<DataType> getChildren()
getChildren 在类中 DataTypepublic <R> R accept(DataTypeVisitor<R> visitor)
Copyright © 2025 The Apache Software Foundation. All rights reserved.