Class TypeConversions
- java.lang.Object
-
- org.apache.flink.table.types.utils.TypeConversions
-
@Internal public final class TypeConversions extends Object
Conversion hub for interoperability ofClass,TypeInformation,DataType, andLogicalType.See the corresponding converter classes for more information about how the conversion is performed.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Optional<DataType>fromClassToDataType(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 Detail
-
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.
-
fromLogicalToDataType
public static DataType fromLogicalToDataType(LogicalType logicalType)
-
fromLogicalToDataType
public static DataType[] fromLogicalToDataType(LogicalType[] logicalTypes)
-
fromDataToLogicalType
public static LogicalType fromDataToLogicalType(DataType dataType)
-
fromDataToLogicalType
public static LogicalType[] fromDataToLogicalType(DataType[] dataTypes)
-
-