Class ConversionClassTransformation
- java.lang.Object
-
- org.apache.flink.table.types.inference.transforms.ConversionClassTransformation
-
- All Implemented Interfaces:
TypeTransformation
@Internal public class ConversionClassTransformation extends Object implements TypeTransformation
This type transformation transforms the specifiedDataTypeto a new one with the expected conversion class. The mapping from data type to conversion class is defined by the constructor parameterconversionsmap that maps from type root to the expected conversion class.
-
-
Constructor Summary
Constructors Constructor Description ConversionClassTransformation(Map<LogicalTypeRoot,Class<?>> conversions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataTypetransform(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
-
ConversionClassTransformation
public ConversionClassTransformation(Map<LogicalTypeRoot,Class<?>> conversions)
-
-
Method Detail
-
transform
public DataType transform(DataType dataType)
Description copied from interface:TypeTransformationTransforms the given data type to a different data type.- Specified by:
transformin interfaceTypeTransformation
-
-