|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ValueType>
com.bigdata.sparse.ValueType
public enum ValueType
A type safe enumeration of value types. This class also supports encoding and decoding of instances of the enumerated value types and is used for encoding and decoding of column values.
| Enum Constant Summary | |
|---|---|
AutoIncInteger
A 32-bit auto-incremental counter. |
|
AutoIncLong
A 64-bit auto-incremental counter. |
|
ByteArray
An uninterpreted byte array. |
|
Date
A date is serialized as a long integer. |
|
Double
A double precision floating point value. |
|
Float
A single precision floating point value. |
|
Integer
A 32-bit integer. |
|
Long
A 64-bit integer. |
|
Serializable
A Java object that will be serialized using its Serializable or
Externalizable interface. |
|
Unicode
A Unicode string. |
|
| Method Summary | |
|---|---|
static Object |
decode(byte[] v)
|
static byte[] |
encode(Object v)
Encode an object that is an instance of a supported class. |
static DataOutputBuffer |
getBuffer()
Return a ThreadLocal buffer that is used to serialize values. |
int |
intValue()
An integer that identifies the type safe enumeration value. |
static ValueType |
valueOf(int code)
|
static ValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ValueType[] |
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, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ValueType Integer
public static final ValueType Long
public static final ValueType Float
public static final ValueType Double
public static final ValueType Unicode
public static final ValueType Date
public static final ValueType ByteArray
public static final ValueType AutoIncInteger
AutoIncIntegerCounterpublic static final ValueType AutoIncLong
AutoIncLongCounterpublic static final ValueType Serializable
Serializable or
Externalizable interface.
| Method Detail |
|---|
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType 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 int intValue()
public static ValueType valueOf(int code)
public static DataOutputBuffer getBuffer()
ThreadLocal buffer that is used to serialize values.
public static byte[] encode(Object v)
v - The value.
UnsupportedOperationException - if the value is not an instance of a supported class.public static Object decode(byte[] v)
v -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||