Interface StorageReadOnlyIterator<E>
- All Superinterfaces:
ReadOnlyIterator<E>
- All Known Implementing Classes:
EmptyStorageReadOnlyIterator,SqliteStorageLayer.RDBMSRedoLogIterator
An iterator which support read only operation over a
IRedoLogFileStorage- Since:
- 7.1
- Author:
- eitany
-
Method Summary
-
Method Details
-
hasNext
Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)- Specified by:
hasNextin interfaceReadOnlyIterator<E>- Returns:
- true if the iterator has more elements.
- Throws:
StorageException
-
next
Returns the next element in the iteration. Calling this method repeatedly until thehasNext()method returns false will return each element in the underlying collection exactly once.- Specified by:
nextin interfaceReadOnlyIterator<E>- Returns:
- the next element in the iteration.
- Throws:
NoSuchElementException- iteration has no more elements.StorageException
-
close
Closes the iterator- Specified by:
closein interfaceReadOnlyIterator<E>- Throws:
StorageException
-