@Internal public interface BufferOrEventSequence
CheckpointBarrierHandler
. The sequence of buffers and events can be
read back using the method getNext()
.Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleans up all the resources held by the sequence.
|
BufferOrEvent |
getNext()
Gets the next BufferOrEvent from the sequence, or
null , if the
sequence is exhausted. |
void |
open()
Initializes the sequence for reading.
|
long |
size()
Gets the size of the sequence.
|
void open()
@Nullable BufferOrEvent getNext() throws IOException
null
, if the
sequence is exhausted.null
(end of sequence).IOException
void cleanup() throws IOException
IOException
long size()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.