Class MultiFilePBEventStream
java.lang.Object
edu.stanford.slac.archiverappliance.plain.pb.MultiFilePBEventStream
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Event>,RemotableOverRaw,EventStream
An eventstream that spans multiple PB files.
You can only get one iterator out of this event stream. This condition is also checked for.
This is typically used with/after PlainPBFileNameUtility.getFilesWithData
- Author:
- mshankar
-
Constructor Summary
ConstructorsConstructorDescriptionMultiFilePBEventStream(Path[] paths, String pvName, ArchDBRTypes dbrtype, Instant startTime, Instant endTime) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MultiFilePBEventStream
public MultiFilePBEventStream(Path[] paths, String pvName, ArchDBRTypes dbrtype, Instant startTime, Instant endTime) throws IOException - Throws:
IOException
-
-
Method Details
-
iterator
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getDescription
- Specified by:
getDescriptionin interfaceEventStream- Specified by:
getDescriptionin interfaceRemotableOverRaw
-