Package org.epics.archiverappliance.etl
Interface ETLBulkStream
-
- All Superinterfaces:
AutoCloseable
,Closeable
,EventStream
,Iterable<Event>
- All Known Implementing Classes:
FileBackedPBEventStream
public interface ETLBulkStream extends EventStream
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 Type Method Description ReadableByteChannel
getByteChannel(BasicContext context)
Get a byte channel positioned at the first event (after the header).Event
getFirstEvent(BasicContext context)
Get the first event in this event stream.-
Methods inherited from interface org.epics.archiverappliance.EventStream
getDescription
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
getFirstEvent
Event getFirstEvent(BasicContext context) throws IOException
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
ReadableByteChannel getByteChannel(BasicContext context) throws IOException
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:
- java.nio.channels.ReadableByteChannel
-
-