public final class TypeInfoFactory extends Object
Modifier and Type | Field and Description |
---|---|
static PrimitiveTypeInfo |
binaryTypeInfo |
static PrimitiveTypeInfo |
booleanTypeInfo |
static PrimitiveTypeInfo |
byteTypeInfo |
static PrimitiveTypeInfo |
charTypeInfo |
static PrimitiveTypeInfo |
dateTypeInfo |
static DecimalTypeInfo |
decimalTypeInfo
A DecimalTypeInfo instance that has max precision and max scale.
|
static PrimitiveTypeInfo |
doubleTypeInfo |
static PrimitiveTypeInfo |
floatTypeInfo |
static PrimitiveTypeInfo |
intervalDayTimeTypeInfo |
static PrimitiveTypeInfo |
intervalYearMonthTypeInfo |
static PrimitiveTypeInfo |
intTypeInfo |
static PrimitiveTypeInfo |
longTypeInfo |
static PrimitiveTypeInfo |
shortTypeInfo |
static PrimitiveTypeInfo |
stringTypeInfo |
static PrimitiveTypeInfo |
timestampTypeInfo |
static PrimitiveTypeInfo |
unknownTypeInfo |
static PrimitiveTypeInfo |
varcharTypeInfo |
static PrimitiveTypeInfo |
voidTypeInfo |
Modifier and Type | Method and Description |
---|---|
static CharTypeInfo |
getCharTypeInfo(int length) |
static DecimalTypeInfo |
getDecimalTypeInfo(int precision,
int scale) |
static TypeInfo |
getListTypeInfo(TypeInfo elementTypeInfo) |
static TypeInfo |
getMapTypeInfo(TypeInfo keyTypeInfo,
TypeInfo valueTypeInfo) |
static PrimitiveTypeInfo |
getPrimitiveTypeInfo(String typeName)
Get PrimitiveTypeInfo instance for the given type name of a type
including types with parameters, such as varchar(20).
|
static TypeInfo |
getPrimitiveTypeInfoFromJavaPrimitive(Class<?> clazz) |
static TypeInfo |
getPrimitiveTypeInfoFromPrimitiveWritable(Class<?> clazz) |
static TypeInfo |
getStructTypeInfo(List<String> names,
List<TypeInfo> typeInfos) |
static TypeInfo |
getUnionTypeInfo(List<TypeInfo> typeInfos) |
static VarcharTypeInfo |
getVarcharTypeInfo(int length) |
public static final PrimitiveTypeInfo voidTypeInfo
public static final PrimitiveTypeInfo booleanTypeInfo
public static final PrimitiveTypeInfo intTypeInfo
public static final PrimitiveTypeInfo longTypeInfo
public static final PrimitiveTypeInfo stringTypeInfo
public static final PrimitiveTypeInfo charTypeInfo
public static final PrimitiveTypeInfo varcharTypeInfo
public static final PrimitiveTypeInfo floatTypeInfo
public static final PrimitiveTypeInfo doubleTypeInfo
public static final PrimitiveTypeInfo byteTypeInfo
public static final PrimitiveTypeInfo shortTypeInfo
public static final PrimitiveTypeInfo dateTypeInfo
public static final PrimitiveTypeInfo timestampTypeInfo
public static final PrimitiveTypeInfo intervalYearMonthTypeInfo
public static final PrimitiveTypeInfo intervalDayTimeTypeInfo
public static final PrimitiveTypeInfo binaryTypeInfo
public static final DecimalTypeInfo decimalTypeInfo
public static final PrimitiveTypeInfo unknownTypeInfo
public static PrimitiveTypeInfo getPrimitiveTypeInfo(String typeName)
typeName
- type name possibly with parameters.public static CharTypeInfo getCharTypeInfo(int length)
public static VarcharTypeInfo getVarcharTypeInfo(int length)
public static DecimalTypeInfo getDecimalTypeInfo(int precision, int scale)
public static TypeInfo getPrimitiveTypeInfoFromPrimitiveWritable(Class<?> clazz)
public static TypeInfo getPrimitiveTypeInfoFromJavaPrimitive(Class<?> clazz)
public static TypeInfo getStructTypeInfo(List<String> names, List<TypeInfo> typeInfos)
Copyright © 2017 The Apache Software Foundation. All rights reserved.