Class BufferDecompressor
java.lang.Object
org.apache.flink.runtime.io.network.buffer.BufferDecompressor
Decompressor for compressed
Buffer.-
Constructor Summary
ConstructorsConstructorDescriptionBufferDecompressor(int bufferSize, org.apache.flink.configuration.NettyShuffleEnvironmentOptions.CompressionCodec factoryName) -
Method Summary
Modifier and TypeMethodDescriptiondecompressToIntermediateBuffer(Buffer buffer) Decompresses the givenBufferusingBlockDecompressor.decompressToOriginalBuffer(Buffer buffer) The difference between this method anddecompressToIntermediateBuffer(Buffer)is that this method copies the decompressed data to the inputBufferstarting from offset 0.
-
Constructor Details
-
BufferDecompressor
public BufferDecompressor(int bufferSize, org.apache.flink.configuration.NettyShuffleEnvironmentOptions.CompressionCodec factoryName)
-
-
Method Details
-
decompressToIntermediateBuffer
Decompresses the givenBufferusingBlockDecompressor. The decompressed data will be stored in the intermediate buffer of thisBufferDecompressorand returned to the caller. The caller must guarantee that the returnedBufferhas been freed when calling the method next time.Notes that the decompression will always start from offset 0 to the size of the input
Buffer. -
decompressToOriginalBuffer
The difference between this method anddecompressToIntermediateBuffer(Buffer)is that this method copies the decompressed data to the inputBufferstarting from offset 0.The caller must guarantee that the input
Bufferis writable and there's enough space left.
-