public final class Key extends Iced implements java.lang.Comparable
Modifier and Type | Class and Description |
---|---|
static class |
Key.Ary |
Modifier and Type | Field and Description |
---|---|
byte[] |
_kb |
static byte |
ARRAYLET_CHUNK |
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 java.lang.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(java.lang.Object o) |
int |
desired() |
boolean |
equals(java.lang.Object o) |
static int |
hash(byte[] bits,
int from,
int to) |
int |
hashCode() |
H2ONode |
home_node() |
boolean |
home() |
int |
home(H2O cloud) |
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(java.lang.String s) |
static Key |
make(java.lang.String s,
byte rf) |
static Key |
make(java.lang.String s,
byte rf,
byte systemType,
H2ONode... replicas) |
static Key |
makeUserHidden(Key orig) |
static java.lang.String |
rand() |
Key |
read(AutoBuffer bb)
Deserialize from the AutoBuffer into a pre-existing 'this' object.
|
int |
replica(H2O cloud) |
java.lang.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, writeJSONFields
public static final int KEY_LENGTH
public byte[] _kb
public static final byte ARRAYLET_CHUNK
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 java.lang.CharSequence ILLEGAL_USER_KEY_CHARS
public static final byte DEFAULT_DESIRED_REPLICA_FACTOR
public static final char MAGIC_CHAR
public final boolean isVec()
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 int hash(byte[] bits, int from, int to)
public static Key make(byte[] kb, byte rf)
public static java.lang.String rand()
public static Key make(byte[] kb)
public static Key make(java.lang.String s)
public static Key make(java.lang.String s, byte rf)
public static Key make()
public final Key read(AutoBuffer bb)
Freezable
public final AutoBuffer write(AutoBuffer bb)
Freezable
public final AutoBuffer writeJSON(AutoBuffer bb)
public boolean user_allowed()
public int type()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable