public enum KeyType extends Enum<KeyType>
Schema
name.Schema.getSchemaBytes()
Enum Constant and Description |
---|
ASCII
Variable length ASCII string.
|
Date |
Double |
Float |
Integer |
Long |
Unicode
Variable length Unicode string.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- 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
.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.