@Internal public final class TypeConversions extends Object
Class, TypeInformation, DataType,
and LogicalType.
See the corresponding converter classes for more information about how the conversion is performed.
| 限定符和类型 | 方法和说明 |
|---|---|
static Optional<DataType> |
fromClassToDataType(Class<?> clazz) |
static LogicalType |
fromDataToLogicalType(DataType dataType) |
static LogicalType[] |
fromDataToLogicalType(DataType[] dataTypes) |
static org.apache.flink.api.common.typeinfo.TypeInformation<?> |
fromDataTypeToLegacyInfo(DataType dataType)
已过时。
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. |
static org.apache.flink.api.common.typeinfo.TypeInformation<?>[] |
fromDataTypeToLegacyInfo(DataType[] dataType)
已过时。
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. |
static DataType |
fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo)
已过时。
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. |
static DataType[] |
fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] typeInfo)
已过时。
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. |
static DataType |
fromLogicalToDataType(LogicalType logicalType) |
static DataType[] |
fromLogicalToDataType(LogicalType[] logicalTypes) |
@Deprecated public static DataType fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo)
InternalTypeInfo or
ExternalTypeInfo depending on the use case.@Deprecated public static DataType[] fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] typeInfo)
InternalTypeInfo or
ExternalTypeInfo depending on the use case.@Deprecated public static org.apache.flink.api.common.typeinfo.TypeInformation<?> fromDataTypeToLegacyInfo(DataType dataType)
InternalTypeInfo or
ExternalTypeInfo depending on the use case.@Deprecated public static org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fromDataTypeToLegacyInfo(DataType[] dataType)
InternalTypeInfo or
ExternalTypeInfo depending on the use case.public static DataType fromLogicalToDataType(LogicalType logicalType)
public static DataType[] fromLogicalToDataType(LogicalType[] logicalTypes)
public static LogicalType fromDataToLogicalType(DataType dataType)
public static LogicalType[] fromDataToLogicalType(DataType[] dataTypes)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.