ManagedBuffer Contract

ManagedBuffer is the abstraction of FIXMEs that FIXME.

Table 1. ManagedBuffer Contract
Method Description

convertToNetty

Object convertToNetty()

Used exclusively when MessageEncoder is requested to encode a message

createInputStream

InputStream createInputStream()

Used exclusively when ShuffleBlockFetcherIterator is requested to retrieve the next element

nioByteBuffer

ByteBuffer nioByteBuffer()

Used when…​FIXME

release

ManagedBuffer release()

Used when…​FIXME

retain

ManagedBuffer retain()

Used when:

size

long size()

Number of bytes of the data

Used when…​FIXME

Table 2. ManagedBuffers
ManagedBuffer Description

BlockManagerManagedBuffer

EncryptedManagedBuffer

FileSegmentManagedBuffer

NettyManagedBuffer

NioManagedBuffer