Class TypeConversions
java.lang.Object
org.apache.flink.table.types.utils.TypeConversions
Conversion hub for interoperability of
Class, TypeInformation, DataType,
and LogicalType.
See the corresponding converter classes for more information about how the conversion is performed.
-
Method Summary
Modifier and TypeMethodDescriptionfromClassToDataType(Class<?> clazz) static LogicalTypefromDataToLogicalType(DataType dataType) static LogicalType[]fromDataToLogicalType(DataType[] dataTypes) static org.apache.flink.api.common.typeinfo.TypeInformation<?>fromDataTypeToLegacyInfo(DataType dataType) Deprecated.Please don't use this method anymore.static org.apache.flink.api.common.typeinfo.TypeInformation<?>[]fromDataTypeToLegacyInfo(DataType[] dataType) Deprecated.Please don't use this method anymore.static DataTypefromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo) Deprecated.Please don't use this method anymore.static DataType[]fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] typeInfo) Deprecated.Please don't use this method anymore.static DataTypefromLogicalToDataType(LogicalType logicalType) static DataType[]fromLogicalToDataType(LogicalType[] logicalTypes)
-
Method Details
-
fromLegacyInfoToDataType
@Deprecated public static DataType fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo) Deprecated.Please don't use this method anymore. It will be removed soon and we should not make the removal more painful. Sources and sinks should use the method available in context to convert, within the planner you should use eitherInternalTypeInfoorExternalTypeInfodepending on the use case. -
fromLegacyInfoToDataType
@Deprecated public static DataType[] fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] typeInfo) Deprecated.Please don't use this method anymore. It will be removed soon and we should not make the removal more painful. Sources and sinks should use the method available in context to convert, within the planner you should use eitherInternalTypeInfoorExternalTypeInfodepending on the use case. -
fromDataTypeToLegacyInfo
@Deprecated public static org.apache.flink.api.common.typeinfo.TypeInformation<?> fromDataTypeToLegacyInfo(DataType dataType) Deprecated.Please don't use this method anymore. It will be removed soon and we should not make the removal more painful. Sources and sinks should use the method available in context to convert, within the planner you should use eitherInternalTypeInfoorExternalTypeInfodepending on the use case. -
fromDataTypeToLegacyInfo
@Deprecated public static org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fromDataTypeToLegacyInfo(DataType[] dataType) Deprecated.Please don't use this method anymore. It will be removed soon and we should not make the removal more painful. Sources and sinks should use the method available in context to convert, within the planner you should use eitherInternalTypeInfoorExternalTypeInfodepending on the use case. -
fromClassToDataType
-
fromLogicalToDataType
-
fromLogicalToDataType
-
fromDataToLogicalType
-
fromDataToLogicalType
-