|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.journal.FileRecordIterator
public class FileRecordIterator
Record cursor that returns unseen revisions in ascending order on every iteration.
| Constructor Summary | |
|---|---|
FileRecordIterator(File[] logFiles,
long startRevision,
long stopRevision,
NamespaceResolver resolver,
NamePathResolver npResolver)
Creates a new instance of this class. |
|
| Method Summary | |
|---|---|
void |
close()
Close this cursor, releasing its resources. |
boolean |
hasNext()
Return a flag indicating whether there are next records. |
Record |
nextRecord()
Return the next record. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileRecordIterator(File[] logFiles,
long startRevision,
long stopRevision,
NamespaceResolver resolver,
NamePathResolver npResolver)
logFiles - available log files, sorted ascending by agestartRevision - start point (exclusive)stopRevision - stop point (inclusive)| Method Detail |
|---|
public boolean hasNext()
hasNext in interface RecordIteratortrue if there are more records;
false otherwise
public Record nextRecord()
throws NoSuchElementException,
JournalException
NoSuchElementException. If an error occurs,
throws a JournalException.
nextRecord in interface RecordIteratorNoSuchElementException - if there are no more records
JournalException - if another error occurspublic void close()
close in interface RecordIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||