Class DataTypeConversionClassTransformation
- java.lang.Object
-
- org.apache.flink.table.types.inference.transforms.DataTypeConversionClassTransformation
-
- All Implemented Interfaces:
TypeTransformation
@Internal public class DataTypeConversionClassTransformation extends Object implements TypeTransformation
This type transformation transforms the specified data types to a new one with the expected conversion class. The mapping from data type to conversion class is defined by the constructor parameterconversions
map that maps from type root to the expected conversion class.
-
-
Constructor Summary
Constructors Constructor Description DataTypeConversionClassTransformation(Map<LogicalTypeRoot,Class<?>> conversions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataType
transform(DataType dataType)
Transforms the given data type to a different data type.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.types.inference.TypeTransformation
transform
-
-
-
-
Constructor Detail
-
DataTypeConversionClassTransformation
public DataTypeConversionClassTransformation(Map<LogicalTypeRoot,Class<?>> conversions)
-
-
Method Detail
-
transform
public DataType transform(DataType dataType)
Description copied from interface:TypeTransformation
Transforms the given data type to a different data type.- Specified by:
transform
in interfaceTypeTransformation
-
-