org.jrdf.util.btree
Interface RecordIterator


public interface RecordIterator

An iterator that iterates over the values in a BTree.

Author:
Arjohn Kampman
See Also:
BTree

Method Summary
 void close()
          Closes the iterator, freeing any resources that it uses.
 byte[] next()
          Returns the next value in the BTree.
 void set(byte[] value)
          Replaces the last value returned by next() with the specified value.
 

Method Detail

next

byte[] next()
            throws IOException
Returns the next value in the BTree.

Returns:
A value that is stored in the BTree, or null if all values have been returned.
Throws:
IOException - In case an I/O error occurred.

set

void set(byte[] value)
         throws IOException
Replaces the last value returned by next() with the specified value.

Throws:
IOException - In case an I/O error occurred.

close

void close()
           throws IOException
Closes the iterator, freeing any resources that it uses. Once closed, the iterator will not return any more values.

Throws:
IOException - In case an I/O error occurred.