Package com.sleepycat.db
Class MultipleRecnoNIODataEntry
java.lang.Object
com.sleepycat.db.DatabaseEntry
com.sleepycat.db.MultipleEntry
com.sleepycat.db.MultipleRecnoNIODataEntry
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an entry with no data.Construct an entry with a given java.nio.ByteBuffer. -
Method Summary
Modifier and TypeMethodDescriptionbooleannext(DatabaseEntry recno, DatabaseEntry data) Get the next record number/data pair in the returned set.Methods inherited from class com.sleepycat.db.MultipleEntry
append_internal, append_internal, setUserBufferMethods inherited from class com.sleepycat.db.DatabaseEntry
equals, getData, getDataNIO, getOffset, getPartial, getPartialLength, getPartialOffset, getReadOnly, getRecordNumber, getReuseBuffer, getSize, getUserBuffer, getUserBufferLength, hashCode, setData, setData, setDataNIO, setDataNIO, setOffset, setPartial, setPartial, setPartialLength, setPartialOffset, setReadOnly, setRecordNumber, setReuseBuffer, setSize
-
Constructor Details
-
MultipleRecnoNIODataEntry
public MultipleRecnoNIODataEntry()Construct an entry with no data. The object must be configured before use with theDatabaseEntry.setDataNIOmethod. -
MultipleRecnoNIODataEntry
Construct an entry with a given java.nio.ByteBuffer. The offset is set to zero; the size is set to the length of the java.nio.ByteBuffer.- Parameters:
data- java.nio.ByteBuffer wrapped by the entry.
-
-
Method Details
-
next
Get the next record number/data pair in the returned set. This method may only be called after a successful call to aDatabaseorCursorget method with this object as the data parameter.When used with the Queue and Recno access methods,
data.getData()will returnnullfor deleted records.- Parameters:
recno- an entry that is set to refer to the next record number in the returned set.data- an entry that is set to refer to the next data element in the returned set.- Returns:
- indicates whether a value was found. A return of
falseindicates that the end of the set was reached.
-