@Internal public final class ClassDataTypeConverter extends Object
Note: In most of the cases,
DataTypeExtractor is more useful as it also considers
structured types and type variables possibly annotated with
|Modifier and Type||Method and Description|
Returns the clearly identifiable data type if possible.
public static Optional<DataType> extractDataType(Class<?> clazz)
Longcan be expressed as
DataTypes.BIGINT(). However, for example,
Rowcannot be extracted as information about the fields is missing. Or
BigDecimalneeds to be mapped from a variable precision/scale to constant ones.
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.