Class CSVEventStream
java.lang.Object
org.epics.archiverappliance.utils.imprt.CSVEventStream
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Event>,EventStream
An event stream backed by a CSV file.
CSV file format is the one used by Bob Hall for export from ChannelArchiver - EPICS epochseconds, nanos, value, status, severity.
Example: - 644223600,461147000,5.59054,0,0
- Author:
- mshankar
-
Constructor Summary
ConstructorsConstructorDescriptionCSVEventStream(String pvName, String fileName, ArchDBRTypes type) Create a CSVEventStream backed by a file. -
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
-
CSVEventStream
Create a CSVEventStream backed by a file. As we cannot tell the DBR type from the file alone, we need to specify the DBR type as part of the constructor.- Parameters:
pvName- The name of PV.fileName-type- ArchDBRTypes
-
-
Method Details
-
iterator
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getDescription
- Specified by:
getDescriptionin interfaceEventStream
-