Class MemoryJournal.MemoryRecordIterator
- java.lang.Object
-
- org.apache.jackrabbit.core.journal.MemoryJournal.MemoryRecordIterator
-
- All Implemented Interfaces:
RecordIterator
- Enclosing class:
- MemoryJournal
public class MemoryJournal.MemoryRecordIterator extends Object implements RecordIterator
Record iterator implementation.
-
-
Constructor Summary
Constructors Constructor Description MemoryRecordIterator(long startRevision, long stopRevision)Create a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close this iterator.booleanhasNext()Return a flag indicating whether there are more records.RecordnextRecord()Return the next record.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Return a flag indicating whether there are more records.- Specified by:
hasNextin interfaceRecordIterator- Returns:
trueif there are more records;falseotherwise
-
nextRecord
public Record nextRecord() throws NoSuchElementException, JournalException
Return the next record. If there are no more records, throws aNoSuchElementException. If an error occurs, throws aJournalException.- Specified by:
nextRecordin interfaceRecordIterator- Returns:
- next record
- Throws:
NoSuchElementException- if there are no more recordsJournalException- if another error occurs
-
close
public void close()
Close this iterator. Releases all associated resources.- Specified by:
closein interfaceRecordIterator
-
-