public enum ColumnType extends java.lang.Enum<ColumnType>
Enum Constant and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
findTypeName(ColumnType columntype)
Get the Zebra type name for the passed in Zebra column type
|
java.lang.String |
getName()
Get the Zebra type name for this Zebra column type
|
static ColumnType |
getTypeByName(java.lang.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() |
java.lang.String |
toString()
Same as getType
|
static ColumnType |
valueOf(java.lang.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.
|
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
public static ColumnType[] values()
for (ColumnType c : ColumnType.values()) System.out.println(c);
public static ColumnType 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 abstract byte pigDataType()
public static ColumnType getTypeByName(java.lang.String name)
name
- name of the typepublic static ColumnType getTypeByPigDataType(byte dt)
dt
- Pig typepublic static java.lang.String findTypeName(ColumnType columntype)
columntype
- Zebra column typepublic java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Enum<ColumnType>
public static boolean isSchemaType(ColumnType columnType)
columnType
- Zebra column typeCopyright © 2007-2012 The Apache Software Foundation