java.io.Serializable, java.lang.Comparable<TableFieldTypeEnum>public enum TableFieldTypeEnum extends java.lang.Enum<TableFieldTypeEnum>
| Modifier and Type | Method | Description |
|---|---|---|
static TableFieldTypeEnum |
fromHiveType(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(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,
TypeInfo hiveColumnType) |
|
static TableFieldTypeEnum |
stringToEnumValue(java.lang.String str) |
|
static TableFieldTypeEnum |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static TableFieldTypeEnum fromKvType(FieldDef.Type kvType)
public static TableFieldTypeEnum fromHiveType(TypeInfo hiveType)
public static TableFieldTypeEnum fromHiveType(TypeInfo hiveType, FieldDef.Type kvType)
public static TableFieldTypeEnum stringToEnumValue(java.lang.String str)
Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.