DataTypeFactory.createDataType(TypeInformation) instead. Note that this
method will not create legacy types anymore. It fully uses the new type system available only
in the planner.@Internal @Deprecated public final class LegacyTypeInfoDataTypeConverter extends Object
TypeInformation and DataType that reflects the behavior before
Flink 1.9. The conversion is a 1:1 mapping that allows back-and-forth conversion. Note that
nullability constraints might get lost during the back-and-forth conversion.
This converter only exists to still support deprecated methods that take or return TypeInformation. Some methods will still support type information in the future, however, the
future type information support will integrate nicer with the new type stack.
This converter reflects the old behavior that includes:
java.sql.* time classes for time data types.
BasicArrayTypeInfo and ObjectArrayTypeInfo.
Any changes here need to be applied to the legacy planner as well.
| 限定符和类型 | 方法和说明 |
|---|---|
static DataType |
toDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo)
已过时。
|
static org.apache.flink.api.common.typeinfo.TypeInformation<?> |
toLegacyTypeInfo(DataType dataType)
已过时。
|
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.