Package io.trino.plugin.hive
Class HiveType
- java.lang.Object
-
- io.trino.plugin.hive.HiveType
-
public final class HiveType extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static HiveTypeHIVE_BINARYstatic HiveTypeHIVE_BOOLEANstatic HiveTypeHIVE_BYTEstatic HiveTypeHIVE_DATEstatic HiveTypeHIVE_DOUBLEstatic HiveTypeHIVE_FLOATstatic HiveTypeHIVE_INTstatic HiveTypeHIVE_LONGstatic HiveTypeHIVE_SHORTstatic HiveTypeHIVE_STRINGstatic HiveTypeHIVE_TIMESTAMP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector.CategorygetCategory()List<String>getHiveDereferenceNames(List<Integer> dereferences)Optional<HiveType>getHiveTypeForDereferences(List<Integer> dereferences)HiveTypeNamegetHiveTypeName()TypegetType(TypeManager typeManager)Deprecated.TypegetType(TypeManager typeManager, HiveTimestampPrecision timestampPrecision)org.apache.hadoop.hive.serde2.typeinfo.TypeInfogetTypeInfo()TypeSignaturegetTypeSignature()Deprecated.TypeSignaturegetTypeSignature(HiveTimestampPrecision timestampPrecision)inthashCode()booleanisSupportedType(StorageFormat storageFormat)static booleanisSupportedType(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo typeInfo, StorageFormat storageFormat)static HiveTypetoHiveType(Type type)static HiveTypetoHiveType(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo typeInfo)static List<HiveType>toHiveTypes(String hiveTypes)StringtoString()static HiveTypevalueOf(String hiveTypeName)
-
-
-
Field Detail
-
HIVE_BOOLEAN
public static final HiveType HIVE_BOOLEAN
-
HIVE_BYTE
public static final HiveType HIVE_BYTE
-
HIVE_SHORT
public static final HiveType HIVE_SHORT
-
HIVE_INT
public static final HiveType HIVE_INT
-
HIVE_LONG
public static final HiveType HIVE_LONG
-
HIVE_FLOAT
public static final HiveType HIVE_FLOAT
-
HIVE_DOUBLE
public static final HiveType HIVE_DOUBLE
-
HIVE_STRING
public static final HiveType HIVE_STRING
-
HIVE_TIMESTAMP
public static final HiveType HIVE_TIMESTAMP
-
HIVE_DATE
public static final HiveType HIVE_DATE
-
HIVE_BINARY
public static final HiveType HIVE_BINARY
-
-
Method Detail
-
getHiveTypeName
public HiveTypeName getHiveTypeName()
-
getCategory
public org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector.Category getCategory()
-
getTypeInfo
public org.apache.hadoop.hive.serde2.typeinfo.TypeInfo getTypeInfo()
-
getTypeSignature
@Deprecated public TypeSignature getTypeSignature()
Deprecated.
-
getTypeSignature
public TypeSignature getTypeSignature(HiveTimestampPrecision timestampPrecision)
-
getType
@Deprecated public Type getType(TypeManager typeManager)
Deprecated.
-
getType
public Type getType(TypeManager typeManager, HiveTimestampPrecision timestampPrecision)
-
isSupportedType
public boolean isSupportedType(StorageFormat storageFormat)
-
isSupportedType
public static boolean isSupportedType(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo typeInfo, StorageFormat storageFormat)
-
toHiveType
public static HiveType toHiveType(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo typeInfo)
-
getHiveTypeForDereferences
public Optional<HiveType> getHiveTypeForDereferences(List<Integer> dereferences)
-
-