public final class Key extends Iced implements Comparable
| Modifier and Type | Class and Description |
|---|---|
static class |
Key.Ary |
| Modifier and Type | Field and Description |
|---|---|
byte[] |
_kb |
static byte |
BUILT_IN_KEY |
static byte |
DEFAULT_DESIRED_REPLICA_FACTOR |
static byte |
DFJ_INTERNAL_USER |
static byte |
DVEC |
static byte |
HIDDEN_USER_KEY |
static CharSequence |
ILLEGAL_USER_KEY_CHARS
List of illegal characters which are not allowed in user keys.
|
static byte |
JOB |
static int |
KEY_LENGTH |
static char |
MAGIC_CHAR |
static byte |
USER_KEY |
static byte |
VEC |
static byte |
VGROUP |
| Modifier and Type | Method and Description |
|---|---|
long |
cloud_info(H2O cloud) |
int |
compareTo(Object o) |
int |
desired() |
boolean |
equals(Object o) |
Key |
getVecKey() |
int |
hashCode() |
H2ONode |
home_node() |
boolean |
home() |
int |
home(H2O cloud) |
boolean |
isChunkKey() |
boolean |
isVec() |
static Key |
make() |
static Key |
make(byte[] kb) |
static Key |
make(byte[] kb,
byte rf) |
static Key |
make(byte[] kb,
byte rf,
byte systemType,
H2ONode... replicas) |
static Key |
make(byte rf,
byte systemType,
H2ONode... replicas) |
static Key |
make(String s) |
static Key |
make(String s,
byte rf) |
static Key |
make(String s,
byte rf,
byte systemType,
H2ONode... replicas) |
static Key |
makeSystem(String s) |
static String |
rand() |
Key |
read(AutoBuffer bb)
Deserialize from the AutoBuffer into a pre-existing 'this' object.
|
int |
replica(H2O cloud) |
static String |
toPrettyString(Key k) |
String |
toString()
Converts the key to HTML displayable string.
|
int |
type() |
boolean |
user_allowed() |
AutoBuffer |
write(AutoBuffer bb)
Serialize the 'this' object into the AutoBuffer, returning the AutoBuffer.
|
AutoBuffer |
writeJSON(AutoBuffer bb) |
clone, frozenType, init, newInstance, toDocField, writeJSONFieldspublic static final int KEY_LENGTH
public byte[] _kb
public static final byte BUILT_IN_KEY
public static final byte JOB
public static final byte VEC
public static final byte DVEC
public static final byte VGROUP
public static final byte DFJ_INTERNAL_USER
public static final byte HIDDEN_USER_KEY
public static final byte USER_KEY
public static final CharSequence ILLEGAL_USER_KEY_CHARS
public static final byte DEFAULT_DESIRED_REPLICA_FACTOR
public static final char MAGIC_CHAR
public final boolean isVec()
public final boolean isChunkKey()
public final Key getVecKey()
public int home(H2O cloud)
public int replica(H2O cloud)
public int desired()
public boolean home()
public H2ONode home_node()
public long cloud_info(H2O cloud)
public static Key make(byte[] kb, byte rf)
public static String rand()
public static Key make(byte[] kb)
public static Key make()
public final Key read(AutoBuffer bb)
Freezablepublic final AutoBuffer write(AutoBuffer bb)
Freezablepublic final AutoBuffer writeJSON(AutoBuffer bb)
public boolean user_allowed()
public int type()
public String toString()
public int compareTo(Object o)
compareTo in interface ComparableCopyright © 2013–2014 0xdata. All rights reserved.