InternalTypeInfo.of(LogicalType)
instead if TypeInformation
is
really required. In many cases, InternalSerializers.create(LogicalType)
should be
sufficient.@Deprecated public class TypeInfoDataTypeConverter extends Object
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 and Description |
---|
TypeInfoDataTypeConverter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static TypeInformation<?> |
fromDataTypeToTypeInfo(DataType dataType)
Deprecated.
|
public static TypeInformation<?> fromDataTypeToTypeInfo(DataType dataType)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.