org.apache.hcatalog.data
Class DataType
java.lang.Object
org.apache.hcatalog.data.DataType
public abstract class DataType
- extends java.lang.Object
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 |
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
DataType
public DataType()
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)