Class NetworkBuffer
- All Implemented Interfaces:
Comparable<org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf>,Buffer,org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufConvertible,org.apache.flink.shaded.netty4.io.netty.util.ReferenceCounted
MemorySegment instances.
NOTE: before using this buffer in the netty stack, a buffer allocator must be
set via setAllocator(ByteBufAllocator)!
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.runtime.io.network.buffer.Buffer
Buffer.DataType -
Constructor Summary
ConstructorsConstructorDescriptionNetworkBuffer(org.apache.flink.core.memory.MemorySegment memorySegment, BufferRecycler recycler) Creates a new buffer instance backed by the given memorySegment with 0 for the readerIndex and writerIndex.NetworkBuffer(org.apache.flink.core.memory.MemorySegment memorySegment, BufferRecycler recycler, Buffer.DataType dataType) Creates a new buffer instance backed by the given memorySegment with 0 for the readerIndex and writerIndex.NetworkBuffer(org.apache.flink.core.memory.MemorySegment memorySegment, BufferRecycler recycler, Buffer.DataType dataType, boolean isCompressed, int size) Creates a new buffer instance backed by the given memorySegment with 0 for the readerIndex and size as writerIndex.NetworkBuffer(org.apache.flink.core.memory.MemorySegment memorySegment, BufferRecycler recycler, Buffer.DataType dataType, int size) Creates a new buffer instance backed by the given memorySegment with 0 for the readerIndex and size as writerIndex. -
Method Summary
Modifier and TypeMethodDescriptionprotected byte_getByte(int index) protected int_getInt(int index) protected int_getIntLE(int index) protected long_getLong(int index) protected long_getLongLE(int index) protected short_getShort(int index) protected short_getShortLE(int index) protected int_getUnsignedMedium(int index) protected int_getUnsignedMediumLE(int index) protected void_setByte(int index, int value) protected void_setInt(int index, int value) protected void_setIntLE(int index, int value) protected void_setLong(int index, long value) protected void_setLongLE(int index, long value) protected void_setMedium(int index, int value) protected void_setMediumLE(int index, int value) protected void_setShort(int index, int value) protected void_setShortLE(int index, int value) org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocatoralloc()byte[]array()intorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufintcapacity()org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufcapacity(int newCapacity) org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufcopy(int index, int length) protected voidorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufgetBytes(int index, byte[] dst, int dstIndex, int length) org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufgetBytes(int index, OutputStream out, int length) org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufgetBytes(int index, ByteBuffer dst) intgetBytes(int index, FileChannel out, long position, int length) intgetBytes(int index, GatheringByteChannel out, int length) org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufgetBytes(int index, org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf dst, int dstIndex, int length) Gets the type of data this buffer represents.intReturns the maximum size of the buffer, i.e. the capacity of the underlyingMemorySegment.org.apache.flink.core.memory.MemorySegmentReturns the underlying memory segment.intThis method will be removed in the future.getNioBuffer(int index, int length) Gets a newByteBufferinstance wrapping this buffer's bytes.Gets a newByteBufferinstance wrapping this buffer's readable bytes, i.e. betweenBuffer.getReaderIndex()andBuffer.getSize().intReturns the reader index of this buffer.Gets the buffer's recycler.intgetSize()Returns the size of the written data, i.e. the writer index, of this buffer.booleanhasArray()booleaninternalNioBuffer(int index, int length) booleanisBuffer()Returns whether this buffer represents a buffer or an event.booleanbooleanisDirect()booleanReturns whether this buffer has been recycled or not.longnioBuffer(int index, int length) intnioBuffers(int index, int length) order()org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufreadBytes(int length) Returns a read-only slice of this buffer's readable bytes, i.e. betweenBuffer.getReaderIndex()andBuffer.getSize().readOnlySlice(int index, int length) Returns a read-only slice of this buffer.voidReleases this buffer once, i.e. reduces the reference count and recycles the buffer if the reference count reaches 0.Retains this buffer for further use, increasing the reference counter by 1.voidsetAllocator(org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator allocator) Sets the buffer allocator for use in netty.org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufsetBytes(int index, byte[] src, int srcIndex, int length) intsetBytes(int index, InputStream in, int length) org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufsetBytes(int index, ByteBuffer src) intsetBytes(int index, FileChannel in, long position, int length) intsetBytes(int index, ScatteringByteChannel in, int length) org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufsetBytes(int index, org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf src, int srcIndex, int length) voidsetCompressed(boolean isCompressed) Tags the buffer as compressed or uncompressed.voidsetDataType(Buffer.DataType dataType) Sets the type of data this buffer represents.voidsetReaderIndex(int readerIndex) Sets the reader index of this buffer.voidsetRecycler(BufferRecycler bufferRecycler) Sets the buffer's recycler.voidsetSize(int writerIndex) Sets the size of the written data, i.e. the writer index, of this buffer.toString()org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufunwrap()Methods inherited from class org.apache.flink.shaded.netty4.io.netty.buffer.AbstractReferenceCountedByteBuf
refCnt, release, release, resetRefCnt, retain, retain, setRefCnt, touch, touchMethods inherited from class org.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
adjustMarkers, asReadOnly, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkDstIndex, checkIndex, checkIndex, checkNewCapacity, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, discardReadBytes, discardSomeReadBytes, duplicate, ensureAccessible, ensureWritable, ensureWritable, equals, forEachByte, forEachByte, forEachByteDesc, forEachByteDesc, getBoolean, getByte, getBytes, getBytes, getBytes, getChar, getCharSequence, getDouble, getFloat, getInt, getIntLE, getLong, getLongLE, getMedium, getMediumLE, getShort, getShortLE, getUnsignedByte, getUnsignedInt, getUnsignedIntLE, getUnsignedMedium, getUnsignedMediumLE, getUnsignedShort, getUnsignedShortLE, hashCode, indexOf, isReadable, isReadable, isReadOnly, isWritable, isWritable, markReaderIndex, markWriterIndex, maxCapacity, maxCapacity, maxWritableBytes, newSwappedByteBuf, nioBuffer, nioBuffers, order, readableBytes, readBoolean, readByte, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readChar, readCharSequence, readDouble, readerIndex, readerIndex, readFloat, readInt, readIntLE, readLong, readLongLE, readMedium, readMediumLE, readRetainedSlice, readShort, readShortLE, readSlice, readUnsignedByte, readUnsignedInt, readUnsignedIntLE, readUnsignedMedium, readUnsignedMediumLE, readUnsignedShort, readUnsignedShortLE, resetReaderIndex, resetWriterIndex, retainedDuplicate, retainedSlice, retainedSlice, setBoolean, setByte, setBytes, setBytes, setBytes, setChar, setCharSequence, setDouble, setFloat, setIndex, setInt, setIntLE, setLong, setLongLE, setMedium, setMediumLE, setShort, setShortLE, setZero, skipBytes, slice, slice, toString, toString, trimIndicesToCapacity, writableBytes, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeCharSequence, writeDouble, writeFloat, writeInt, writeIntLE, writeLong, writeLongLE, writeMedium, writeMediumLE, writerIndex, writerIndex, writeShort, writeShortLE, writeZeroMethods inherited from class org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
getDoubleLE, getFloatLE, isContiguous, maxFastWritableBytes, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLEMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.io.network.buffer.Buffer
readableBytes, refCnt, toDebugString
-
Constructor Details
-
NetworkBuffer
public NetworkBuffer(org.apache.flink.core.memory.MemorySegment memorySegment, BufferRecycler recycler) Creates a new buffer instance backed by the given memorySegment with 0 for the readerIndex and writerIndex.- Parameters:
memorySegment- backing memory segment (definesAbstractByteBuf.maxCapacity)recycler- will be called to recycle this buffer once the reference count is 0
-
NetworkBuffer
public NetworkBuffer(org.apache.flink.core.memory.MemorySegment memorySegment, BufferRecycler recycler, Buffer.DataType dataType) Creates a new buffer instance backed by the given memorySegment with 0 for the readerIndex and writerIndex.- Parameters:
memorySegment- backing memory segment (definesAbstractByteBuf.maxCapacity)recycler- will be called to recycle this buffer once the reference count is 0dataType- theBuffer.DataTypethis buffer represents
-
NetworkBuffer
public NetworkBuffer(org.apache.flink.core.memory.MemorySegment memorySegment, BufferRecycler recycler, Buffer.DataType dataType, int size) Creates a new buffer instance backed by the given memorySegment with 0 for the readerIndex and size as writerIndex.- Parameters:
memorySegment- backing memory segment (definesAbstractByteBuf.maxCapacity)recycler- will be called to recycle this buffer once the reference count is 0dataType- theBuffer.DataTypethis buffer representssize- current size of data in the buffer, i.e. the writer index to set
-
NetworkBuffer
public NetworkBuffer(org.apache.flink.core.memory.MemorySegment memorySegment, BufferRecycler recycler, Buffer.DataType dataType, boolean isCompressed, int size) Creates a new buffer instance backed by the given memorySegment with 0 for the readerIndex and size as writerIndex.- Parameters:
memorySegment- backing memory segment (definesAbstractByteBuf.maxCapacity)recycler- will be called to recycle this buffer once the reference count is 0dataType- theBuffer.DataTypethis buffer representssize- current size of data in the buffer, i.e. the writer index to setisCompressed- whether the buffer is compressed or not
-
-
Method Details
-
isBuffer
public boolean isBuffer()Description copied from interface:BufferReturns whether this buffer represents a buffer or an event. -
getMemorySegment
public org.apache.flink.core.memory.MemorySegment getMemorySegment()Description copied from interface:BufferReturns the underlying memory segment. This method is dangerous since it ignores read only protections and omits slices. Use it only along theBuffer.getMemorySegmentOffset().This method will be removed in the future. For writing use
BufferBuilder.- Specified by:
getMemorySegmentin interfaceBuffer- Returns:
- the memory segment backing this buffer
-
getMemorySegmentOffset
public int getMemorySegmentOffset()Description copied from interface:BufferThis method will be removed in the future. For writing useBufferBuilder.- Specified by:
getMemorySegmentOffsetin interfaceBuffer- Returns:
- the offset where this (potential slice)
Buffer's data start in the underlying memory segment.
-
getRecycler
Description copied from interface:BufferGets the buffer's recycler.- Specified by:
getRecyclerin interfaceBuffer- Returns:
- buffer recycler
-
setRecycler
Description copied from interface:BufferSets the buffer's recycler.Note that updating the recycler is an unsafe operation and this method cannot guarantee thread safety. It is important for the caller to fully understand the consequences of calling this method. Incorrectly updating the buffer recycler can result in a leak of the buffer due to using a wrong recycler to recycle buffer. Therefore, be careful when calling this method.
- Specified by:
setRecyclerin interfaceBuffer- Parameters:
bufferRecycler- the new buffer recycler
-
recycleBuffer
public void recycleBuffer()Description copied from interface:BufferReleases this buffer once, i.e. reduces the reference count and recycles the buffer if the reference count reaches 0.- Specified by:
recycleBufferin interfaceBuffer- See Also:
-
isRecycled
public boolean isRecycled()Description copied from interface:BufferReturns whether this buffer has been recycled or not.- Specified by:
isRecycledin interfaceBuffer- Returns:
- true if already recycled, false otherwise
-
retainBuffer
Description copied from interface:BufferRetains this buffer for further use, increasing the reference counter by 1.- Specified by:
retainBufferin interfaceBuffer- Returns:
- this instance (for chained calls)
- See Also:
-
readOnlySlice
Description copied from interface:BufferReturns a read-only slice of this buffer's readable bytes, i.e. betweenBuffer.getReaderIndex()andBuffer.getSize().Reader and writer indices as well as markers are not shared. Reference counters are shared but the slice is not
retainedautomatically.- Specified by:
readOnlySlicein interfaceBuffer- Returns:
- a read-only sliced buffer
-
readOnlySlice
Description copied from interface:BufferReturns a read-only slice of this buffer.Reader and writer indices as well as markers are not shared. Reference counters are shared but the slice is not
retainedautomatically.- Specified by:
readOnlySlicein interfaceBuffer- Parameters:
index- the index to start fromlength- the length of the slice- Returns:
- a read-only sliced buffer
-
deallocate
protected void deallocate()- Specified by:
deallocatein classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractReferenceCountedByteBuf
-
_getByte
protected byte _getByte(int index) - Specified by:
_getBytein classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_getShort
protected short _getShort(int index) - Specified by:
_getShortin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_getShortLE
protected short _getShortLE(int index) - Specified by:
_getShortLEin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_getUnsignedMedium
protected int _getUnsignedMedium(int index) - Specified by:
_getUnsignedMediumin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_getUnsignedMediumLE
protected int _getUnsignedMediumLE(int index) - Specified by:
_getUnsignedMediumLEin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_getInt
protected int _getInt(int index) - Specified by:
_getIntin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_getIntLE
protected int _getIntLE(int index) - Specified by:
_getIntLEin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_getLong
protected long _getLong(int index) - Specified by:
_getLongin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_getLongLE
protected long _getLongLE(int index) - Specified by:
_getLongLEin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_setByte
protected void _setByte(int index, int value) - Specified by:
_setBytein classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_setShort
protected void _setShort(int index, int value) - Specified by:
_setShortin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_setShortLE
protected void _setShortLE(int index, int value) - Specified by:
_setShortLEin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_setMedium
protected void _setMedium(int index, int value) - Specified by:
_setMediumin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_setMediumLE
protected void _setMediumLE(int index, int value) - Specified by:
_setMediumLEin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_setInt
protected void _setInt(int index, int value) - Specified by:
_setIntin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_setIntLE
protected void _setIntLE(int index, int value) - Specified by:
_setIntLEin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_setLong
protected void _setLong(int index, long value) - Specified by:
_setLongin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
_setLongLE
protected void _setLongLE(int index, long value) - Specified by:
_setLongLEin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
capacity
public int capacity()- Specified by:
capacityin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
getMaxCapacity
public int getMaxCapacity()Description copied from interface:BufferReturns the maximum size of the buffer, i.e. the capacity of the underlyingMemorySegment.- Specified by:
getMaxCapacityin interfaceBuffer- Returns:
- size of the buffer
-
getReaderIndex
public int getReaderIndex()Description copied from interface:BufferReturns the reader index of this buffer.This is where readable (unconsumed) bytes start in the backing memory segment.
- Specified by:
getReaderIndexin interfaceBuffer- Returns:
- reader index (from 0 (inclusive) to the size of the backing
MemorySegment(inclusive))
-
setReaderIndex
Description copied from interface:BufferSets the reader index of this buffer.- Specified by:
setReaderIndexin interfaceBuffer- Throws:
IndexOutOfBoundsException- if the index is less than 0 or greater thanBuffer.getSize()
-
getSize
public int getSize()Description copied from interface:BufferReturns the size of the written data, i.e. the writer index, of this buffer.This is where writable bytes start in the backing memory segment.
-
setSize
public void setSize(int writerIndex) Description copied from interface:BufferSets the size of the written data, i.e. the writer index, of this buffer. -
capacity
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf capacity(int newCapacity) - Specified by:
capacityin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
order
- Specified by:
orderin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
unwrap
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf unwrap()- Specified by:
unwrapin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
isDirect
public boolean isDirect()- Specified by:
isDirectin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
getBytes
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf getBytes(int index, org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf dst, int dstIndex, int length) - Specified by:
getBytesin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
getBytes
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf getBytes(int index, byte[] dst, int dstIndex, int length) - Specified by:
getBytesin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
getBytes
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf getBytes(int index, OutputStream out, int length) throws IOException - Specified by:
getBytesin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf- Throws:
IOException
-
getBytes
- Specified by:
getBytesin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf- Throws:
IOException
-
getBytes
- Specified by:
getBytesin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf- Throws:
IOException
-
setBytes
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf setBytes(int index, org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf src, int srcIndex, int length) - Specified by:
setBytesin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
setBytes
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf setBytes(int index, byte[] src, int srcIndex, int length) - Specified by:
setBytesin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf- Throws:
IOException
-
setBytes
- Specified by:
setBytesin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf- Throws:
IOException
-
setBytes
- Specified by:
setBytesin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf- Throws:
IOException
-
alloc
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator alloc()- Specified by:
allocin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
setAllocator
public void setAllocator(org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator allocator) Description copied from interface:BufferSets the buffer allocator for use in netty.- Specified by:
setAllocatorin interfaceBuffer- Parameters:
allocator- netty buffer allocator
-
copy
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf copy(int index, int length) - Specified by:
copyin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
readBytes
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf readBytes(int length) - Overrides:
readBytesin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
nioBufferCount
public int nioBufferCount()- Specified by:
nioBufferCountin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
getNioBufferReadable
Description copied from interface:BufferGets a newByteBufferinstance wrapping this buffer's readable bytes, i.e. betweenBuffer.getReaderIndex()andBuffer.getSize().Please note that neither index is updated by the returned buffer.
- Specified by:
getNioBufferReadablein interfaceBuffer- Returns:
- byte buffer sharing the contents of the underlying memory segment
-
getNioBuffer
Description copied from interface:BufferGets a newByteBufferinstance wrapping this buffer's bytes.Please note that neither read nor write index are updated by the returned buffer.
- Specified by:
getNioBufferin interfaceBuffer- Returns:
- byte buffer sharing the contents of the underlying memory segment
- See Also:
-
nioBuffer
- Specified by:
nioBufferin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
internalNioBuffer
- Specified by:
internalNioBufferin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
nioBuffers
- Specified by:
nioBuffersin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
hasArray
public boolean hasArray()- Specified by:
hasArrayin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
array
public byte[] array()- Specified by:
arrayin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
arrayOffset
public int arrayOffset()- Specified by:
arrayOffsetin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
hasMemoryAddress
public boolean hasMemoryAddress()- Specified by:
hasMemoryAddressin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
memoryAddress
public long memoryAddress()- Specified by:
memoryAddressin classorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
-
toString
- Overrides:
toStringin classorg.apache.flink.shaded.netty4.io.netty.buffer.AbstractByteBuf
-
asByteBuf
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf asByteBuf() -
isCompressed
public boolean isCompressed()- Specified by:
isCompressedin interfaceBuffer- Returns:
- whether the buffer is compressed or not.
-
setCompressed
public void setCompressed(boolean isCompressed) Description copied from interface:BufferTags the buffer as compressed or uncompressed.- Specified by:
setCompressedin interfaceBuffer
-
getDataType
Description copied from interface:BufferGets the type of data this buffer represents.- Specified by:
getDataTypein interfaceBuffer
-
setDataType
Description copied from interface:BufferSets the type of data this buffer represents.- Specified by:
setDataTypein interfaceBuffer
-