Class TypeConversions


  • @Internal
    public final class TypeConversions
    extends Object
    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 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 either InternalTypeInfo or ExternalTypeInfo depending 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 either InternalTypeInfo or ExternalTypeInfo depending 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 either InternalTypeInfo or ExternalTypeInfo depending 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 either InternalTypeInfo or ExternalTypeInfo depending 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)