Class TypeInfoLogicalTypeConverter

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

@Deprecated public class TypeInfoLogicalTypeConverter extends Object
Deprecated.
Converter between TypeInformation and LogicalType.

This class is for: 1.Source, Sink. 2.UDF, UDTF. 3.Agg, AggFunctions, Expression, DataView.

  • Constructor Details

    • TypeInfoLogicalTypeConverter

      public TypeInfoLogicalTypeConverter()
      Deprecated.
  • Method Details

    • fromTypeInfoToLogicalType

      public static org.apache.flink.table.types.logical.LogicalType fromTypeInfoToLogicalType(org.apache.flink.api.common.typeinfo.TypeInformation typeInfo)
      Deprecated.
      It will lose some information. (Like PojoTypeInfo will converted to RowType) It and fromLogicalTypeToTypeInfo(org.apache.flink.table.types.logical.LogicalType) not allows back-and-forth conversion.
    • fromLogicalTypeToTypeInfo

      public static org.apache.flink.api.common.typeinfo.TypeInformation fromLogicalTypeToTypeInfo(org.apache.flink.table.types.logical.LogicalType type)
      Deprecated.
      Use BigDecimalTypeInfo to retain precision and scale of decimal.