Class GzipHFileDecompressionContext
java.lang.Object
org.apache.hadoop.hbase.io.compress.Compression.HFileDecompressionContext
org.apache.hadoop.hbase.io.compress.GzipHFileDecompressionContext
- All Implemented Interfaces:
Closeable,AutoCloseable,HeapSize
@Private
public final class GzipHFileDecompressionContext
extends Compression.HFileDecompressionContext
Holds HFile-level settings used by GzipByteBuffDecompressor. It's expensive to pull these from a
Configuration object every time we decompress a block, so pull them upon opening an HFile, and
reuse them in every block that gets decompressed.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGzipHFileDecompressionContext(boolean allowByteBuffDecompression) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()fromConfiguration(org.apache.hadoop.conf.Configuration conf) longheapSize()Return the approximate 'exclusive deep size' of implementing object.booleantoString()
-
Field Details
-
FIXED_OVERHEAD
-
ALLOW_BYTE_BUFF_DECOMPRESSION_KEY
- See Also:
-
allowByteBuffDecompression
-
-
Constructor Details
-
GzipHFileDecompressionContext
-
-
Method Details
-
isAllowByteBuffDecompression
-
fromConfiguration
public static GzipHFileDecompressionContext fromConfiguration(org.apache.hadoop.conf.Configuration conf) -
close
- Throws:
IOException
-
heapSize
Description copied from interface:HeapSizeReturn the approximate 'exclusive deep size' of implementing object. Includes count of payload and hosting object sizings. -
toString
-