Berkeley DB XML
version 2.5.16

Class MultipleNIODataEntry

  extended by com.sleepycat.db.DatabaseEntry
      extended by com.sleepycat.db.MultipleEntry
          extended by com.sleepycat.db.MultipleNIODataEntry

public class MultipleNIODataEntry
extends MultipleEntry

A DatabaseEntry that holds multiple data items returned by a single Database or Cursor get call.

Constructor Summary
          Construct an entry with no data.
MultipleNIODataEntry(ByteBuffer data)
          Construct an entry with a given java.nio.ByteBuffer.
Method Summary
 boolean next(DatabaseEntry data)
          Get the next data element in the returned set.
Methods inherited from class com.sleepycat.db.MultipleEntry
Methods inherited from class com.sleepycat.db.DatabaseEntry
equals, getData, getDataNIO, getOffset, getPartial, getPartialLength, getPartialOffset, getRecordNumber, getReuseBuffer, getSize, getUserBuffer, getUserBufferLength, hashCode, setData, setData, setDataNIO, setDataNIO, setOffset, setPartial, setPartial, setPartialLength, setPartialOffset, setRecordNumber, setReuseBuffer, setSize
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public MultipleNIODataEntry()
Construct an entry with no data. The object must be configured before use with the DatabaseEntry.setDataNIO method.


public MultipleNIODataEntry(ByteBuffer data)
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.

data - java.nio.ByteBuffer wrapped by the entry.
Method Detail


public boolean next(DatabaseEntry data)
Get the next data element in the returned set. This method may only be called after a successful call to a 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.

indicates whether a value was found. A return of false indicates that the end of the set was reached.

Berkeley DB XML
version 2.5.16

Copyright (c) 1996,2009 Oracle. All rights reserved.