public final class Key
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Class and Description |
---|---|
static class |
Key.DumpType |
Modifier and Type | Field and Description |
---|---|
static boolean |
DUMP_INT_BINDING |
static Key.DumpType |
DUMP_TYPE |
static byte[] |
EMPTY_KEY |
Constructor and Description |
---|
Key(byte[] key)
Construct a new key from a byte array.
|
Modifier and Type | Method and Description |
---|---|
static int |
compareKeys(byte[] key1,
byte[] key2,
java.util.Comparator comparator)
Compare keys with an optional comparator.
|
int |
compareTo(java.lang.Object o)
Compare two keys.
|
static java.lang.String |
dumpString(byte[] key,
int nspaces) |
boolean |
equals(java.lang.Object o)
Support Set of Key in BINReference.
|
byte[] |
getKey()
Get the byte array for the key.
|
static java.lang.String |
getNoFormatString(byte[] key)
Print the string w/out XML format.
|
int |
hashCode()
Support HashSet of Key in BINReference.
|
static byte[] |
makeKey(DatabaseEntry dbt) |
public static Key.DumpType DUMP_TYPE
public static boolean DUMP_INT_BINDING
public static final byte[] EMPTY_KEY
public static byte[] makeKey(DatabaseEntry dbt)
public byte[] getKey()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static int compareKeys(byte[] key1, byte[] key2, java.util.Comparator comparator)
public static java.lang.String dumpString(byte[] key, int nspaces)
public static java.lang.String getNoFormatString(byte[] key)