Class FullyFilledBuffer
- java.lang.Object
-
- org.apache.flink.runtime.io.network.buffer.AbstractCompositeBuffer
-
- org.apache.flink.runtime.io.network.buffer.FullyFilledBuffer
-
- All Implemented Interfaces:
Buffer
public class FullyFilledBuffer extends AbstractCompositeBuffer
An implementation ofBufferrepresents a fully filled buffer which contains multiple partial buffers for network data communication.All partial must have the same data type and compression status. And they are originate from different write buffers but are combined to minimize network overhead.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.io.network.buffer.Buffer
Buffer.DataType
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.io.network.buffer.AbstractCompositeBuffer
allocator, currentLength, dataType, isCompressed, length, partialBuffers
-
-
Constructor Summary
Constructors Constructor Description FullyFilledBuffer(Buffer.DataType dataType, int length, boolean isCompressed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPartialBuffer(Buffer buffer)org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufasByteBuf()-
Methods inherited from class org.apache.flink.runtime.io.network.buffer.AbstractCompositeBuffer
getDataType, getMaxCapacity, getMemorySegment, getMemorySegmentOffset, getNioBuffer, getNioBufferReadable, getPartialBuffers, getReaderIndex, getRecycler, getSize, isBuffer, isCompressed, isRecycled, missingLength, readableBytes, readOnlySlice, readOnlySlice, recycleBuffer, refCnt, retainBuffer, setAllocator, setCompressed, setDataType, setReaderIndex, setRecycler, setSize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.io.network.buffer.Buffer
toDebugString
-
-
-
-
Constructor Detail
-
FullyFilledBuffer
public FullyFilledBuffer(Buffer.DataType dataType, int length, boolean isCompressed)
-
-
Method Detail
-
asByteBuf
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf asByteBuf()
- Returns:
- self as ByteBuf implementation.
-
addPartialBuffer
public void addPartialBuffer(Buffer buffer)
- Specified by:
addPartialBufferin classAbstractCompositeBuffer
-
-