@Internal public class EmptyBufferStorage extends Object implements BufferStorage
BufferStorage. It doesn't allow for adding any data.| Constructor and Description |
|---|
EmptyBufferStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent boe)
Adds a buffer or event to the
BufferStorage. |
void |
close()
Cleans up all the resources in the current sequence.
|
long |
getMaxBufferedBytes() |
long |
getPendingBytes() |
long |
getRolledBytes() |
boolean |
isEmpty() |
boolean |
isFull() |
Optional<org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent> |
pollNext() |
void |
rollOver()
Start returning next sequence of stored
BufferOrEvents. |
public void add(org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent boe)
BufferStorageBufferStorage.add in interface BufferStorageboe - The buffer or event to be added into the blocker.public boolean isFull()
isFull in interface BufferStoragepublic void rollOver()
BufferStorageBufferOrEvents.rollOver in interface BufferStoragepublic long getPendingBytes()
getPendingBytes in interface BufferStoragepublic long getRolledBytes()
getRolledBytes in interface BufferStoragepublic boolean isEmpty()
isEmpty in interface BufferStorageBufferStorage doesn't store and data.public Optional<org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent> pollNext()
pollNext in interface BufferStoragepublic long getMaxBufferedBytes()
getMaxBufferedBytes in interface BufferStoragepublic void close()
BufferStorageclose in interface AutoCloseableclose in interface BufferStorageCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.