Class ClassDataTypeConverter
- java.lang.Object
-
- org.apache.flink.table.runtime.types.ClassDataTypeConverter
-
public class ClassDataTypeConverter extends Object
Utils for getDataTypefrom a Class. It must return a DataType. Convert known types byTypeConversions.fromClassToDataType(java.lang.Class<?>). Convert unknown types byLegacyTypeInformationType.
-
-
Constructor Summary
Constructors Constructor Description ClassDataTypeConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.flink.table.types.DataTypefromClassToDataType(Class<?> clazz)
-
-
-
Method Detail
-
fromClassToDataType
public static org.apache.flink.table.types.DataType fromClassToDataType(Class<?> clazz)
- Parameters:
clazz- The class of the type.- Returns:
- The DataType object for the type described by the hint.
- Throws:
org.apache.flink.api.common.functions.InvalidTypesException- Cannot extract TypeInformation from Class alone, because generic parameters are missing.
-
-