|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ColumnType>
org.apache.hadoop.zebra.schema.ColumnType
public enum ColumnType
Zebra Column Type
Enum Constant Summary | |
---|---|
ANY
Any type |
|
BOOL
Boolean |
|
BYTES
Bytes |
|
COLLECTION
Collection |
|
DATETIME
DateTime |
|
DOUBLE
Double |
|
FLOAT
Float |
|
INT
Integer |
|
LONG
Long |
|
MAP
Map |
|
RECORD
Record |
|
STRING
String |
Method Summary | |
---|---|
static String |
findTypeName(ColumnType columntype)
Get the Zebra type name for the passed in Zebra column type |
String |
getName()
Get the Zebra type name for this Zebra column type |
static ColumnType |
getTypeByName(String name)
To get the type based on the type name string. |
static ColumnType |
getTypeByPigDataType(byte dt)
Get the Zebra type from a Pig type |
static boolean |
isSchemaType(ColumnType columnType)
check if a column type contains internal schema |
abstract byte |
pigDataType()
|
String |
toString()
Same as getType |
static ColumnType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ColumnType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ColumnType ANY
public static final ColumnType INT
public static final ColumnType LONG
public static final ColumnType FLOAT
public static final ColumnType DOUBLE
public static final ColumnType BOOL
public static final ColumnType DATETIME
public static final ColumnType COLLECTION
public static final ColumnType MAP
public static final ColumnType RECORD
public static final ColumnType STRING
public static final ColumnType BYTES
Method Detail |
---|
public static ColumnType[] values()
for (ColumnType c : ColumnType.values()) System.out.println(c);
public static ColumnType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic abstract byte pigDataType()
public static ColumnType getTypeByName(String name)
name
- name of the type
public static ColumnType getTypeByPigDataType(byte dt)
dt
- Pig type
public static String findTypeName(ColumnType columntype)
columntype
- Zebra column type
public String getName()
public String toString()
toString
in class Enum<ColumnType>
public static boolean isSchemaType(ColumnType columnType)
columnType
- Zebra column type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |