Class CSVEventStream
- java.lang.Object
-
- org.epics.archiverappliance.utils.imprt.CSVEventStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<Event>
,EventStream
public class CSVEventStream extends Object implements 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
Constructors Constructor Description CSVEventStream(String pvName, String fileName, ArchDBRTypes type)
Create a CSVEventStream backed by a file.
-
Method Summary
Modifier and Type Method Description void
close()
EventStreamDesc
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
-
CSVEventStream
public CSVEventStream(String pvName, String fileName, ArchDBRTypes type)
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 Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getDescription
public EventStreamDesc getDescription()
- Specified by:
getDescription
in interfaceEventStream
-
-