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 void
close()
Close this iterator.boolean
hasNext()
Return a flag indicating whether there are more records.Record
nextRecord()
Return the next record.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Return a flag indicating whether there are more records.- Specified by:
hasNext
in interfaceRecordIterator
- Returns:
true
if there are more records;false
otherwise
-
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:
nextRecord
in 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:
close
in interfaceRecordIterator
-
-