@PublicEvolving public final class KeyValueDataType extends DataType
MAP).conversionClass, logicalType| 构造器和说明 |
|---|
KeyValueDataType(LogicalType logicalType,
Class<?> conversionClass,
DataType keyDataType,
DataType valueDataType) |
KeyValueDataType(LogicalType logicalType,
DataType keyDataType,
DataType valueDataType) |
| 限定符和类型 | 方法和说明 |
|---|---|
<R> R |
accept(DataTypeVisitor<R> visitor) |
DataType |
bridgedTo(Class<?> newConversionClass)
Adds a hint that data should be represented using the given class when entering or leaving
the table ecosystem.
|
boolean |
equals(Object o) |
List<DataType> |
getChildren() |
DataType |
getKeyDataType() |
DataType |
getValueDataType() |
int |
hashCode() |
DataType |
notNull()
Adds a hint that null values are not expected in the data for this type.
|
DataType |
nullable()
Adds a hint that null values are expected in the data for this type (default behavior).
|
getConversionClass, getLogicalType, toStringpublic KeyValueDataType(LogicalType logicalType, @Nullable Class<?> conversionClass, DataType keyDataType, DataType valueDataType)
public KeyValueDataType(LogicalType logicalType, DataType keyDataType, DataType valueDataType)
public DataType getKeyDataType()
public DataType getValueDataType()
public DataType notNull()
AbstractDataTypepublic DataType nullable()
AbstractDataTypeThis method exists for explicit declaration of the default behavior or for invalidation of
a previous call to AbstractDataType.notNull().
public DataType bridgedTo(Class<?> newConversionClass)
AbstractDataTypeA supported conversion class depends on the logical type and its nullability property.
Please see the implementation of LogicalType.supportsInputConversion(Class),
LogicalType.supportsOutputConversion(Class), or the documentation for more
information about supported conversions.
public List<DataType> getChildren()
getChildren 在类中 DataTypepublic <R> R accept(DataTypeVisitor<R> visitor)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.