Class TypeInfoDataTypeConverter

java.lang.Object
org.apache.flink.table.runtime.types.TypeInfoDataTypeConverter

@Deprecated public class TypeInfoDataTypeConverter extends Object
Deprecated.
Use InternalTypeInfo.of(LogicalType) instead if TypeInformation is really required. In many cases, InternalSerializers.create(LogicalType) should be sufficient.
Converter between TypeInformation and DataType.

Don't override TypeConversions.fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?>). It is a user interface.

The different with TypeConversions.fromDataTypeToLegacyInfo(org.apache.flink.table.types.DataType): 1.Deal with VARCHAR and VARBINARY with precision. 2.Deal with RowData. 3.Deal with DecimalData.

This class is for: 1.See TableFunctionDefinition.getResultType(). 2.See AggregateFunctionDefinition.getAccumulatorTypeInfo(). 3.See MapViewTypeInfo.getKeyType().

  • Constructor Details

    • TypeInfoDataTypeConverter

      public TypeInfoDataTypeConverter()
      Deprecated.
  • Method Details

    • fromDataTypeToTypeInfo

      public static org.apache.flink.api.common.typeinfo.TypeInformation<?> fromDataTypeToTypeInfo(org.apache.flink.table.types.DataType dataType)
      Deprecated.