public static class CachedBufferBlocker.CachedBufferOrEventSequence extends Object implements BufferOrEventSequence
CachedBufferBlocker.| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Cleans up all the resources held by the sequence.
|
org.apache.flink.runtime.io.network.partition.consumer.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.
|
public void open()
BufferOrEventSequenceopen in interface BufferOrEventSequence@Nullable public org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent getNext()
BufferOrEventSequencenull, if the
sequence is exhausted.getNext in interface BufferOrEventSequencenull (end of sequence).public void cleanup()
BufferOrEventSequencecleanup in interface BufferOrEventSequencepublic long size()
BufferOrEventSequencesize in interface BufferOrEventSequenceCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.