Package org.epics.archiverappliance.etl
Interface ETLBulkStream
- All Superinterfaces:
AutoCloseable,Closeable,EventStream,Iterable<Event>
- All Known Implementing Classes:
FileBackedPBEventStream
Event streams can optionally implement bulk transfer friendly methods.
If this interface is implemented, then ETL code will use bulk transfers whan moving data.
- Author:
- mshankar
-
Method Summary
Modifier and TypeMethodDescriptiongetByteChannel(BasicContext context) Get a byte channel positioned at the first event (after the header).getFirstEvent(BasicContext context) Get the first event in this event stream.Methods inherited from interface org.epics.archiverappliance.EventStream
getDescriptionMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getFirstEvent
Get the first event in this event stream. If there are no events in this stream, return null.- Parameters:
context- BasicContext- Returns:
- Event return the first event, or null
- Throws:
IOException-
-
getByteChannel
Get a byte channel positioned at the first event (after the header).- Parameters:
context- BasicContext- Returns:
- ReadableByteChannel A channel that can read bytes.
- Throws:
IOException-- See Also:
-