org.apache.hcatalog.data
Class DataType

java.lang.Object
  extended by org.apache.hcatalog.data.DataType

public abstract class DataType
extends java.lang.Object


Field Summary
static byte BOOLEAN
           
static byte BYTE
           
static byte DOUBLE
           
static byte ERROR
           
static byte FLOAT
           
static byte INTEGER
           
static byte LIST
           
static byte LONG
           
static byte MAP
           
static byte NULL
           
static byte SHORT
           
static byte STRING
           
static byte STRUCT
           
 
Constructor Summary
DataType()
           
 
Method Summary
static int compare(java.lang.Object o1, java.lang.Object o2)
           
static int compare(java.lang.Object o1, java.lang.Object o2, byte dt1, byte dt2)
           
static byte findType(java.lang.Object o)
          Determine the datatype of an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final byte NULL
See Also:
Constant Field Values

BOOLEAN

public static final byte BOOLEAN
See Also:
Constant Field Values

BYTE

public static final byte BYTE
See Also:
Constant Field Values

INTEGER

public static final byte INTEGER
See Also:
Constant Field Values

SHORT

public static final byte SHORT
See Also:
Constant Field Values

LONG

public static final byte LONG
See Also:
Constant Field Values

FLOAT

public static final byte FLOAT
See Also:
Constant Field Values

DOUBLE

public static final byte DOUBLE
See Also:
Constant Field Values

STRING

public static final byte STRING
See Also:
Constant Field Values

MAP

public static final byte MAP
See Also:
Constant Field Values

STRUCT

public static final byte STRUCT
See Also:
Constant Field Values

LIST

public static final byte LIST
See Also:
Constant Field Values

ERROR

public static final byte ERROR
See Also:
Constant Field Values
Constructor Detail

DataType

public DataType()
Method Detail

findType

public static byte findType(java.lang.Object o)
Determine the datatype of an object.

Parameters:
o - Object to test.
Returns:
byte code of the type, or ERROR if we don't know.

compare

public static int compare(java.lang.Object o1,
                          java.lang.Object o2)

compare

public static int compare(java.lang.Object o1,
                          java.lang.Object o2,
                          byte dt1,
                          byte dt2)