@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 org.apache.flink.api.common.typeinfo.TypeInformation<?> |
fromDataTypeToLegacyInfo(DataType dataType) |
static org.apache.flink.api.common.typeinfo.TypeInformation<?>[] |
fromDataTypeToLegacyInfo(DataType[] dataType) |
static DataType |
fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo) |
static DataType[] |
fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] typeInfo) |
static DataType |
fromLogicalToDataType(LogicalType logicalType) |
static DataType[] |
fromLogicalToDataType(LogicalType[] logicalTypes) |
public static DataType fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInfo)
public static DataType[] fromLegacyInfoToDataType(org.apache.flink.api.common.typeinfo.TypeInformation<?>[] typeInfo)
public static org.apache.flink.api.common.typeinfo.TypeInformation<?> fromDataTypeToLegacyInfo(DataType dataType)
public static org.apache.flink.api.common.typeinfo.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–2020 The Apache Software Foundation. All rights reserved.