@Public public 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.| Constructor and Description |
|---|
MapType(boolean isNullable,
DataType keyType,
DataType valueType) |
MapType(DataType keyType,
DataType valueType) |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(DataTypeVisitor<R> visitor) |
String |
asSQLString()
Returns a string that summarizes this type as SQL standard string for printing to a console.
|
void |
collectFieldIds(Set<Integer> fieldIds) |
DataType |
copy(boolean isNullable)
Returns a deep copy of this type with possibly different nullability.
|
boolean |
equals(Object o) |
DataType |
getKeyType() |
DataType |
getValueType() |
int |
hashCode() |
void |
serializeJson(org.apache.paimon.shade.jackson2.com.fasterxml.jackson.core.JsonGenerator generator) |
copy, equalsIgnoreNullable, getTypeRoot, is, is, isAnyOf, isAnyOf, isNullable, notNull, nullable, toString, withNullabilitypublic static final String FORMAT
public DataType getKeyType()
public DataType getValueType()
public DataType copy(boolean isNullable)
DataTypepublic String asSQLString()
DataTypeasSQLString in class DataTypepublic void serializeJson(org.apache.paimon.shade.jackson2.com.fasterxml.jackson.core.JsonGenerator generator)
throws IOException
serializeJson in class DataTypeIOExceptionpublic <R> R accept(DataTypeVisitor<R> visitor)
public void collectFieldIds(Set<Integer> fieldIds)
collectFieldIds in class DataTypeCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.