Class AirBlockDecompressor
- java.lang.Object
-
- org.apache.flink.runtime.io.compression.AirBlockDecompressor
-
- All Implemented Interfaces:
BlockDecompressor
public class AirBlockDecompressor extends Object implements BlockDecompressor
Flink decompressor that wrapsDecompressor.
-
-
Constructor Summary
Constructors Constructor Description AirBlockDecompressor(io.airlift.compress.Decompressor internalDecompressor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdecompress(byte[] src, int srcOff, int srcLen, byte[] dst, int dstOff)Decompress source data read from src and write the decompressed data to dst.intdecompress(ByteBuffer src, int srcOff, int srcLen, ByteBuffer dst, int dstOff)Decompress source data read from (Buffer.position()+srcOff), and write the decompressed data to dst.
-
-
-
Method Detail
-
decompress
public int decompress(ByteBuffer src, int srcOff, int srcLen, ByteBuffer dst, int dstOff) throws BufferDecompressionException
Description copied from interface:BlockDecompressorDecompress source data read from (Buffer.position()+srcOff), and write the decompressed data to dst.- Specified by:
decompressin interfaceBlockDecompressor- Parameters:
src- Compressed data to read fromsrcOff- The start offset of compressed datasrcLen- The length of data which want to be decompresseddst- The target to write decompressed datadstOff- The start offset to write the decompressed data- Returns:
- Length of decompressed data
- Throws:
BufferDecompressionException- if exception thrown when decompressing
-
decompress
public int decompress(byte[] src, int srcOff, int srcLen, byte[] dst, int dstOff) throws BufferDecompressionExceptionDescription copied from interface:BlockDecompressorDecompress source data read from src and write the decompressed data to dst.- Specified by:
decompressin interfaceBlockDecompressor- Parameters:
src- Compressed data to read fromsrcOff- The start offset of compressed datasrcLen- The length of data which want to be decompresseddst- The target to write decompressed datadstOff- The start offset to write the decompressed data- Returns:
- Length of decompressed data
- Throws:
BufferDecompressionException- if exception thrown when decompressing
-
-