Class MultiFilePBEventStream
- java.lang.Object
-
- edu.stanford.slac.archiverappliance.PlainPB.MultiFilePBEventStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<Event>
,EventStream
,RemotableOverRaw
public class MultiFilePBEventStream extends Object implements EventStream, RemotableOverRaw
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
Constructors Constructor Description MultiFilePBEventStream(Path[] paths, String pvName, ArchDBRTypes dbrtype, Timestamp startTime, Timestamp endTime)
-
Method Summary
Modifier and Type Method Description void
close()
RemotableEventStreamDesc
getDescription()
Iterator<Event>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
MultiFilePBEventStream
public MultiFilePBEventStream(Path[] paths, String pvName, ArchDBRTypes dbrtype, Timestamp startTime, Timestamp endTime) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getDescription
public RemotableEventStreamDesc getDescription()
- Specified by:
getDescription
in interfaceEventStream
- Specified by:
getDescription
in interfaceRemotableOverRaw
-
-