public class MemoryJournal.MemoryRecordIterator extends Object implements RecordIterator
| Constructor and Description |
|---|
MemoryRecordIterator(long startRevision,
long stopRevision)
Create a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this iterator.
|
boolean |
hasNext()
Return a flag indicating whether there are more records.
|
Record |
nextRecord()
Return the next record.
|
public MemoryRecordIterator(long startRevision,
long stopRevision)
startRevision - start revisionstopRevision - stop revisionpublic boolean hasNext()
hasNext in interface RecordIteratortrue if there are more records;
false otherwisepublic Record nextRecord() throws NoSuchElementException, JournalException
NoSuchElementException. If an error occurs,
throws a JournalException.nextRecord in interface RecordIteratorNoSuchElementException - if there are no more recordsJournalException - if another error occurspublic void close()
close in interface RecordIteratorCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.