Class PBEventStreamPositionBasedReverseIterator
java.lang.Object
edu.stanford.slac.archiverappliance.plain.pb.PBEventStreamPositionBasedReverseIterator
- All Implemented Interfaces:
FileBackedPBEventStreamIterator,Closeable,AutoCloseable,Iterator<Event>
public class PBEventStreamPositionBasedReverseIterator
extends Object
implements FileBackedPBEventStreamIterator
An iterator for a FileBackedPBEventStream that can go backwards in time
- Author:
- mshankar
-
Constructor Summary
ConstructorsConstructorDescriptionPBEventStreamPositionBasedReverseIterator(Path path, long startFilePos, long endFilePos, short year, ArchDBRTypes type) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
PBEventStreamPositionBasedReverseIterator
public PBEventStreamPositionBasedReverseIterator(Path path, long startFilePos, long endFilePos, short year, ArchDBRTypes type) throws IOException - Throws:
IOException
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-