JXTA

net.jxta.impl.xindice.core.data
Interface RecordSet


public interface RecordSet

RecordSet is an interface for iterating over a set of Records. It is almost always returned by Filers.


Method Summary
 Key getNextKey()
          getNextKey returns the next Record's Key, and skips the RecordSet ahead to the next Record.
 Record getNextRecord()
          getNextRecord returns the next Record in the set.
 Value getNextValue()
          getNextValue returns the next Record's Value, and skips the RecordSet ahead to the next Record.
 boolean hasMoreRecords()
          hasMoreRecords returns whether or not there are any Records left in the set.
 

Method Detail

hasMoreRecords

boolean hasMoreRecords()
                       throws DBException
hasMoreRecords returns whether or not there are any Records left in the set.

Returns:
Whether there are any more Records
Throws:
BTreeException - if a DB exception occurs
DBException

getNextRecord

Record getNextRecord()
                     throws DBException
getNextRecord returns the next Record in the set.

Returns:
The next Record
Throws:
BTreeException - if a DB exception occurs
DBException

getNextKey

Key getNextKey()
               throws DBException
getNextKey returns the next Record's Key, and skips the RecordSet ahead to the next Record.

Returns:
The next Key
Throws:
BTreeException - if a DB exception occurs
DBException

getNextValue

Value getNextValue()
                   throws DBException
getNextValue returns the next Record's Value, and skips the RecordSet ahead to the next Record.

Returns:
The next Value
Throws:
BTreeException - if a DB exception occurs
DBException

JXSE