Class ZstdHFileDecompressionContext
java.lang.Object
org.apache.hadoop.hbase.io.compress.Compression.HFileDecompressionContext
org.apache.hadoop.hbase.io.compress.zstd.ZstdHFileDecompressionContext
- All Implemented Interfaces:
Closeable
,AutoCloseable
,HeapSize
@Private
public final class ZstdHFileDecompressionContext
extends Compression.HFileDecompressionContext
Holds HFile-level settings used by ZstdByteBuffDecompressor. 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
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final com.github.luben.zstd.ZstdDictDecompress
private final int
static final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ZstdHFileDecompressionContext
(com.github.luben.zstd.ZstdDictDecompress dict, int dictId, boolean allowByteBuffDecompression) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
fromConfiguration
(org.apache.hadoop.conf.Configuration conf) com.github.luben.zstd.ZstdDictDecompress
getDict()
int
long
heapSize()
Return the approximate 'exclusive deep size' of implementing object.boolean
toString()
-
Field Details
-
FIXED_OVERHEAD
-
dict
-
dictId
-
allowByteBuffDecompression
-
-
Constructor Details
-
ZstdHFileDecompressionContext
private ZstdHFileDecompressionContext(@Nullable com.github.luben.zstd.ZstdDictDecompress dict, int dictId, boolean allowByteBuffDecompression)
-
-
Method Details
-
getDict
-
getDictId
-
isAllowByteBuffDecompression
-
fromConfiguration
public static ZstdHFileDecompressionContext fromConfiguration(org.apache.hadoop.conf.Configuration conf) -
close
- Throws:
IOException
-
heapSize
Description copied from interface:HeapSize
Return the approximate 'exclusive deep size' of implementing object. Includes count of payload and hosting object sizings. -
toString
-