|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.tree.Key
Key represents a JE B-Tree Key. Keys are immutable.
Field Summary | |
static boolean |
DUMP_BINARY
|
static boolean |
DUMP_INT_BINDING
|
Constructor Summary | |
Key()
Construct a new key. |
|
Key(byte[] key)
Construct a new key from a byte array. |
|
Key(DatabaseEntry dbt)
Construct a new key from a DatabaseEntry. |
Method Summary | |
static int |
compareByteArray(byte[] arg1,
byte[] arg2)
|
int |
compareTo(Object o)
Compare two keys. |
byte[] |
copy()
|
void |
dumpLog(StringBuffer sb,
boolean verbose)
Write the object into the string buffer for log dumping. |
(package private) String |
dumpString(int nspaces)
|
boolean |
equals(Object o)
Support Set of Key in BINReference. |
byte[] |
getKey()
Get the byte array for the key. |
int |
getLogSize()
|
String |
getNoFormatString()
Print the string w/out XML format. |
long |
getTransactionId()
|
int |
hashCode()
Support HashSet of Key in BINReference. |
boolean |
logEntryIsTransactional()
|
void |
readFromLog(ByteBuffer itemBuf)
Initialize this object from the data in itemBuf. |
String |
toString()
|
void |
writeToLog(ByteBuffer logBuffer)
Serialize this object into the buffer. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static boolean DUMP_BINARY
public static boolean DUMP_INT_BINDING
Constructor Detail |
public Key()
public Key(byte[] key)
public Key(DatabaseEntry dbt)
Method Detail |
public byte[] getKey()
public byte[] copy()
public int compareTo(Object o)
compareTo
in interface Comparable
public boolean equals(Object o)
public int hashCode()
public static int compareByteArray(byte[] arg1, byte[] arg2)
public String toString()
public String getNoFormatString()
String dumpString(int nspaces)
public int getLogSize()
getLogSize
in interface LogWritable
LogWritable.getLogSize()
public void writeToLog(ByteBuffer logBuffer)
LogWritable
writeToLog
in interface LogWritable
logBuffer
- is the destination bufferLogWritable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(ByteBuffer itemBuf)
LogReadable
readFromLog
in interface LogReadable
LogReadable.readFromLog(java.nio.ByteBuffer)
public void dumpLog(StringBuffer sb, boolean verbose)
LogReadable
dumpLog
in interface LogReadable
sb
- destination string bufferverbose
- if true, dump the full, verbose versionLogReadable.dumpLog(java.lang.StringBuffer, boolean)
public boolean logEntryIsTransactional()
logEntryIsTransactional
in interface LogReadable
LogReadable.logEntryIsTransactional()
public long getTransactionId()
getTransactionId
in interface LogReadable
LogReadable.getTransactionId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |