@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.
Modifier and Type | Method and Description |
---|---|
static Optional<DataType> |
fromClassToDataType(Class<?> clazz) |
static LogicalType |
fromDataToLogicalType(DataType dataType) |
static LogicalType[] |
fromDataToLogicalType(DataType[] dataTypes) |
static TypeInformation<?> |
fromDataTypeToLegacyInfo(DataType dataType)
Deprecated.
Please don't use this method anymore. It will be removed soon and we should not
make the removal more painful.
|
static TypeInformation<?>[] |
fromDataTypeToLegacyInfo(DataType[] dataType)
Deprecated.
Please don't use this method anymore. It will be removed soon and we should not
make the removal more painful.
|
static DataType |
fromLegacyInfoToDataType(TypeInformation<?> typeInfo)
Deprecated.
Please don't use this method anymore. It will be removed soon and we should not
make the removal more painful.
|
static DataType[] |
fromLegacyInfoToDataType(TypeInformation<?>[] typeInfo)
Deprecated.
Please don't use this method anymore. It will be removed soon and we should not
make the removal more painful.
|
static DataType |
fromLogicalToDataType(LogicalType logicalType) |
static DataType[] |
fromLogicalToDataType(LogicalType[] logicalTypes) |
@Deprecated public static DataType fromLegacyInfoToDataType(TypeInformation<?> typeInfo)
@Deprecated public static DataType[] fromLegacyInfoToDataType(TypeInformation<?>[] typeInfo)
@Deprecated public static TypeInformation<?> fromDataTypeToLegacyInfo(DataType dataType)
@Deprecated public static TypeInformation<?>[] fromDataTypeToLegacyInfo(DataType[] dataType)
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.