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
An implementation of
Buffer represents 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
ConstructorsConstructorDescriptionFullyFilledBuffer(Buffer.DataType dataType, int length, boolean isCompressed) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPartialBuffer(Buffer buffer) org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufMethods 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, setSizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.io.network.buffer.Buffer
toDebugString
-
Constructor Details
-
FullyFilledBuffer
-
-
Method Details
-
asByteBuf
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf asByteBuf()- Returns:
- self as ByteBuf implementation.
-
addPartialBuffer
- Specified by:
addPartialBufferin classAbstractCompositeBuffer
-