|
Berkeley DB version 4.3.29 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sleepycat.db.DatabaseEntry com.sleepycat.db.MultipleEntry com.sleepycat.db.MultipleDataEntry
A DatabaseEntry that holds multiple data items returned by a single
Database
or Cursor
get call.
Constructor Summary | |
MultipleDataEntry()
Construct an entry with no data. |
|
MultipleDataEntry(byte[] data)
Construct an entry with a given byte array. |
|
MultipleDataEntry(byte[] data,
int offset,
int size)
Constructs a DatabaseEntry with a given byte array, offset and size. |
Method Summary | |
boolean |
next(DatabaseEntry data)
Get the next data element in the returned set. |
Methods inherited from class com.sleepycat.db.MultipleEntry |
setUserBuffer |
Methods inherited from class com.sleepycat.db.DatabaseEntry |
getData, getOffset, getPartial, getPartialLength, getPartialOffset, getRecordNumber, getReuseBuffer, getSize, getUserBuffer, getUserBufferLength, setData, setData, setOffset, setPartial, setPartial, setPartialLength, setPartialOffset, setRecordNumber, setReuseBuffer, setSize |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultipleDataEntry()
MultipleEntry.setUserBuffer
method.
public MultipleDataEntry(byte[] data)
MultipleEntry.setUserBuffer
method.
data
- Byte array wrapped by the entry.public MultipleDataEntry(byte[] data, int offset, int size)
data
- Byte array wrapped by the DatabaseEntry.offset
- Offset in the first byte in the byte array to be included.size
- Number of bytes in the byte array to be included.Method Detail |
public boolean next(DatabaseEntry data)
Database
or
Cursor
get method with this object as the data parameter.
When used with the Queue and Recno access methods,
data.getData()
will return
null
for deleted
records.
data
- an entry that is set to refer to the next data element in the returned
set.
false
indicates that the end of the set was reached.
|
Berkeley DB version 4.3.29 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |