@PublicEvolving public final class AtomicDataType extends DataType
INT or BOOLEAN).conversionClass, logicalType| Constructor and Description |
|---|
AtomicDataType(LogicalType logicalType) |
AtomicDataType(LogicalType logicalType,
Class<?> conversionClass) |
| 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.
|
List<DataType> |
getChildren()
Returns the children of this data type, if any.
|
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).
|
equals, getConversionClass, getFieldCount, getFieldDataTypes, getFieldNames, getFields, getLogicalType, hashCode, toInternal, toStringpublic AtomicDataType(LogicalType logicalType, @Nullable Class<?> conversionClass)
public AtomicDataType(LogicalType logicalType)
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()
DataTypegetChildren in class DataTypepublic <R> R accept(DataTypeVisitor<R> visitor)
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.