|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.DatabaseEntry
public class DatabaseEntry
Javadoc for this public class is generated via the doc templates in the doc_src directory.
Field Summary | |
---|---|
static int |
MAX_DUMP_BYTES
|
Constructor Summary | |
---|---|
DatabaseEntry()
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
|
DatabaseEntry(byte[] data)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
|
DatabaseEntry(byte[] data,
int offset,
int size)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
Method Summary | |
---|---|
(package private) String |
dumpData()
Dumps the data as a byte array, for tracing purposes |
boolean |
equals(Object o)
Compares the data of two entries for byte-by-byte equality. |
byte[] |
getData()
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
int |
getOffset()
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
boolean |
getPartial()
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
int |
getPartialLength()
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
int |
getPartialOffset()
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
int |
getSize()
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
int |
hashCode()
Returns a hash code based on the data value. |
void |
setData(byte[] data)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
void |
setData(byte[] data,
int offset,
int size)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
void |
setOffset(int offset)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
void |
setPartial(boolean partial)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
void |
setPartial(int doff,
int dlen,
boolean partial)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
void |
setPartialLength(int dlen)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
void |
setPartialOffset(int doff)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
void |
setSize(int size)
Javadoc for this public method is generated via the doc templates in the doc_src directory. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int MAX_DUMP_BYTES
Constructor Detail |
---|
public DatabaseEntry()
public DatabaseEntry(byte[] data)
public DatabaseEntry(byte[] data, int offset, int size)
Method Detail |
---|
public String toString()
toString
in class Object
public byte[] getData()
public void setData(byte[] data)
public void setData(byte[] data, int offset, int size)
public void setPartial(int doff, int dlen, boolean partial)
public int getPartialLength()
public void setPartialLength(int dlen)
public int getPartialOffset()
public void setPartialOffset(int doff)
public boolean getPartial()
public void setPartial(boolean partial)
public int getOffset()
public void setOffset(int offset)
public int getSize()
public void setSize(int size)
String dumpData()
public boolean equals(Object o)
In either entry, if the offset is non-zero or the size is not equal to the data array length, then only the data bounded by these values is compared. The data array length and offset need not be the same in both entries for them to be considered equal.
If the data array is null in one entry, then to be considered equal both entries must have a null data array.
If the partial property is set in either entry, then to be considered equal both entries must have the same partial properties: partial, partialOffset and partialLength.
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |