|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<KeyType>
com.bigdata.sparse.KeyType
public enum KeyType
A type safe enumeration of key types and the byte values that are used to
encode that key type within the encoded Schema name.
Schema.getSchemaBytes()| Enum Constant Summary | |
|---|---|
ASCII
Variable length ASCII string. |
|
Date
|
|
Double
|
|
Float
|
|
Integer
|
|
Long
|
|
Unicode
Variable length Unicode string. |
|
| Method Summary | |
|---|---|
byte |
getByteCode()
The byte that indicates this KeyType. |
int |
getEncodedLength()
The #of bytes in which values of that KeyType are encoded -or-
zero (0) iff values are encoded in a variable number of bytes with a
nul terminator for the byte sequence. |
static KeyType |
getKeyType(byte b)
Return the KeyType given its byte code. |
boolean |
isFixedLength()
True iff the key type is encoded in a fixed #of bytes. |
static KeyType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static KeyType[] |
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 KeyType Integer
public static final KeyType Long
public static final KeyType Float
public static final KeyType Double
public static final KeyType Unicode
public static final KeyType ASCII
public static final KeyType Date
| Method Detail |
|---|
public static KeyType[] values()
for (KeyType c : KeyType.values()) System.out.println(c);
public static KeyType 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 boolean isFixedLength()
public int getEncodedLength()
KeyType are encoded -or-
zero (0) iff values are encoded in a variable number of bytes with a
nul terminator for the byte sequence.
public byte getByteCode()
KeyType.
public static KeyType getKeyType(byte b)
KeyType given its byte code.
b - The byte code.
KeyType.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||