@PublicEvolving public final class FieldsDataType extends DataType
ROW
or structured types).conversionClass, logicalType
Constructor and Description |
---|
FieldsDataType(LogicalType logicalType,
Class<?> conversionClass,
Map<String,DataType> fieldDataTypes) |
FieldsDataType(LogicalType logicalType,
Map<String,DataType> fieldDataTypes) |
Modifier and Type | Method and Description |
---|---|
<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) |
Map<String,DataType> |
getFieldDataTypes() |
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, toString
public FieldsDataType(LogicalType logicalType, @Nullable Class<?> conversionClass, Map<String,DataType> fieldDataTypes)
public FieldsDataType(LogicalType logicalType, Map<String,DataType> fieldDataTypes)
public DataType notNull()
DataType
public DataType nullable()
DataType
This method exists for explicit declaration of the default behavior or for invalidation of
a previous call to DataType.notNull()
.
public DataType bridgedTo(Class<?> newConversionClass)
DataType
A 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 <R> R accept(DataTypeVisitor<R> visitor)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.