public enum TableFieldTypeEnum extends Enum<TableFieldTypeEnum>
Modifier and Type | Method and Description |
---|---|
static TableFieldTypeEnum |
fromHiveType(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo hiveType)
Maps the given Hive column type to the corresponding enum value
defined in this class; corresponding to a field type of a KV Store
table.
|
static TableFieldTypeEnum |
fromHiveType(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo hiveType,
FieldDef.Type kvType) |
static TableFieldTypeEnum |
fromKvType(FieldDef.Type kvType)
Maps the given field type of a KV Store table to the corresponding
enum value defined in this class; corresponding to a field type of
a KV Store table.
|
static boolean |
kvHiveTypesMatch(FieldDef kvFieldDef,
org.apache.hadoop.hive.serde2.typeinfo.TypeInfo hiveColumnType) |
static TableFieldTypeEnum |
stringToEnumValue(String str) |
static TableFieldTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TableFieldTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TableFieldTypeEnum TABLE_FIELD_STRING
public static final TableFieldTypeEnum TABLE_FIELD_BOOLEAN
public static final TableFieldTypeEnum TABLE_FIELD_INTEGER
public static final TableFieldTypeEnum TABLE_FIELD_LONG
public static final TableFieldTypeEnum TABLE_FIELD_FLOAT
public static final TableFieldTypeEnum TABLE_FIELD_DOUBLE
public static final TableFieldTypeEnum TABLE_FIELD_ENUM
public static final TableFieldTypeEnum TABLE_FIELD_BINARY
public static final TableFieldTypeEnum TABLE_FIELD_FIXED_BINARY
public static final TableFieldTypeEnum TABLE_FIELD_MAP
public static final TableFieldTypeEnum TABLE_FIELD_RECORD
public static final TableFieldTypeEnum TABLE_FIELD_ARRAY
public static final TableFieldTypeEnum TABLE_FIELD_NULL
public static final TableFieldTypeEnum TABLE_FIELD_UNKNOWN_TYPE
public static TableFieldTypeEnum[] values()
for (TableFieldTypeEnum c : TableFieldTypeEnum.values()) System.out.println(c);
public static TableFieldTypeEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static TableFieldTypeEnum fromKvType(FieldDef.Type kvType)
public static TableFieldTypeEnum fromHiveType(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo hiveType)
public static TableFieldTypeEnum fromHiveType(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo hiveType, FieldDef.Type kvType)
public static TableFieldTypeEnum stringToEnumValue(String str)
public static boolean kvHiveTypesMatch(FieldDef kvFieldDef, org.apache.hadoop.hive.serde2.typeinfo.TypeInfo hiveColumnType)
Copyright (c) 2011, 2017 Oracle and/or its affiliates. All rights reserved.