Class HFileBlockDefaultDecodingContext
java.lang.Object
org.apache.hadoop.hbase.io.encoding.HFileBlockDefaultDecodingContext
- All Implemented Interfaces:
HFileBlockDecodingContext
@Private
public class HFileBlockDefaultDecodingContext
extends Object
implements HFileBlockDecodingContext
A default implementation of
HFileBlockDecodingContext
. It assumes the block data section
is compressed as a whole.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configuration
private final HFileContext
private TagCompressionContext
-
Constructor Summary
ConstructorDescriptionHFileBlockDefaultDecodingContext
(org.apache.hadoop.conf.Configuration conf, HFileContext fileContext) -
Method Summary
Modifier and TypeMethodDescriptionReturns HFile meta informationvoid
prepareDecoding
(int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, ByteBuff blockBufferWithoutHeader, ByteBuff onDiskBlock) Perform all actions that need to be done before the encoder's real decoding process.void
setTagCompressionContext
(TagCompressionContext tagCompressionContext)
-
Field Details
-
conf
-
fileContext
-
tagCompressionContext
-
-
Constructor Details
-
HFileBlockDefaultDecodingContext
public HFileBlockDefaultDecodingContext(org.apache.hadoop.conf.Configuration conf, HFileContext fileContext)
-
-
Method Details
-
prepareDecoding
public void prepareDecoding(int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, ByteBuff blockBufferWithoutHeader, ByteBuff onDiskBlock) throws IOException Description copied from interface:HFileBlockDecodingContext
Perform all actions that need to be done before the encoder's real decoding process. Decompression needs to be done ifHFileContext.getCompression()
returns a valid compression algorithm. numBytes after block and encoding headers numBytes without header required to store the block after decompressing (not decoding) ByteBuffer pointed after the header but before the data on disk data to be decoded- Specified by:
prepareDecoding
in interfaceHFileBlockDecodingContext
- Throws:
IOException
-
getHFileContext
Description copied from interface:HFileBlockDecodingContext
Returns HFile meta information- Specified by:
getHFileContext
in interfaceHFileBlockDecodingContext
-
getTagCompressionContext
-
setTagCompressionContext
-