Class BlockDecompressorHelper
java.lang.Object
org.apache.hadoop.hbase.io.compress.BlockDecompressorHelper
Helper to decompress a ByteBuff that was created by a
BlockCompressorStream
, or is at least in the same format.
Parses the binary format and delegates actual decompression work to the provided
BlockDecompressorHelper.RawDecompressor
. Note that the use of the word "block" here does not refer to an HFile
block.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
decompress
(ByteBuff output, ByteBuff input, int inputSize, BlockDecompressorHelper.RawDecompressor rawDecompressor) private static int
rawReadInt
(ByteBuff input) Read an integer from the buffer in big-endian byte order.
-
Constructor Details
-
BlockDecompressorHelper
public BlockDecompressorHelper()
-
-
Method Details
-
decompress
public static int decompress(ByteBuff output, ByteBuff input, int inputSize, BlockDecompressorHelper.RawDecompressor rawDecompressor) throws IOException - Throws:
IOException
-
rawReadInt
Read an integer from the buffer in big-endian byte order. Note thatByteBuffer.getInt()
reads in system-dependent endian-ness, so we can't use that.
-