|
Berkeley DB version 4.2.52 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sleepycat.bdb.RecordNumberFormat
The data format for record number keys. This class must be used whenever a record number is used with a store, index, or binding. It is used to identify Berkeley DB record numbers as such and perform special processing required by Berkeley DB. Namely, the byte order of record numbers is not the same as the byte order for integers in Java, and is also platform dependent.
Constructor Summary | |
RecordNumberFormat()
Creates a record number format. |
Method Summary | |
long |
dataToRecordNumber(DataBuffer data)
Utility method for use by bindings to translate a data buffer to an record number integer. |
boolean |
equals(Object o)
Test for equality. |
void |
recordNumberToData(long recordNumber,
DataBuffer data)
Utility method for use by bindings to translate a record number integer to a data buffer. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RecordNumberFormat()
Method Detail |
public final long dataToRecordNumber(DataBuffer data)
data
- the data buffer.
public final void recordNumberToData(long recordNumber, DataBuffer data)
recordNumber
- the record number.data
- the data buffer to hold the record number.public boolean equals(Object o)
equals
in class Object
o
- the object to check.
|
Berkeley DB version 4.2.52 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |