Interface RecordIterator
- All Superinterfaces:
AutoCloseable,Closeable
An iterator that iterates over records, for example those in a BTree.
- Author:
- Arjohn Kampman
- See Also:
-
Method Summary
-
Method Details
-
next
Returns the next record in the BTree.- Returns:
- A record that is stored in the BTree, or null if all records have been returned.
- Throws:
IOException- In case an I/O error occurred.
-
set
Replaces the last record returned bynext()with the specified record.- Throws:
IOException- In case an I/O error occurred.
-
close
Closes the iterator, freeing any resources that it uses. Once closed, the iterator will not return any more records.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- In case an I/O error occurred.
-