T - kind of data type returned after mutation@PublicEvolving
public interface AbstractDataType<T extends AbstractDataType<T>>
Fully resolved data types that can be used directly to declare input and/or output types of
operations. This kind is represented in subclasses of DataType.
Partially resolved data types that can be resolved to DataType but require a lookup in
a catalog or configuration first. This kind is represented in subclasses of UnresolvedDataType.
Note: Use DataTypes for producing instances of this class.
| Modifier and Type | Method and Description |
|---|---|
T |
bridgedTo(Class<?> newConversionClass)
Adds a hint that data should be represented using the given class when entering or leaving
the table ecosystem.
|
T |
notNull()
Adds a hint that null values are not expected in the data for this type.
|
T |
nullable()
Adds a hint that null values are expected in the data for this type (default behavior).
|
T notNull()
T nullable()
This method exists for explicit declaration of the default behavior or for invalidation of
a previous call to notNull().
T bridgedTo(Class<?> newConversionClass)
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.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.