@InterfaceAudience.Private public class HFileBlockDefaultDecodingContext extends Object implements HFileBlockDecodingContext
HFileBlockDecodingContext
. It assumes the
block data section is compressed as a whole.for the default compression context
Modifier and Type | Field and Description |
---|---|
private HFileContext |
fileContext |
private TagCompressionContext |
tagCompressionContext |
Constructor and Description |
---|
HFileBlockDefaultDecodingContext(HFileContext fileContext) |
Modifier and Type | Method and Description |
---|---|
HFileContext |
getHFileContext() |
TagCompressionContext |
getTagCompressionContext() |
void |
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) |
private final HFileContext fileContext
private TagCompressionContext tagCompressionContext
public HFileBlockDefaultDecodingContext(HFileContext fileContext)
public void prepareDecoding(int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, ByteBuff blockBufferWithoutHeader, ByteBuff onDiskBlock) throws IOException
HFileBlockDecodingContext
HFileContext.getCompression()
returns a valid compression
algorithm.prepareDecoding
in interface HFileBlockDecodingContext
onDiskSizeWithoutHeader
- numBytes after block and encoding headersuncompressedSizeWithoutHeader
- numBytes without header required to store the block after
decompressing (not decoding)blockBufferWithoutHeader
- ByteBuffer pointed after the header but before the dataonDiskBlock
- on disk data to be decodedIOException
public HFileContext getHFileContext()
getHFileContext
in interface HFileBlockDecodingContext
public TagCompressionContext getTagCompressionContext()
public void setTagCompressionContext(TagCompressionContext tagCompressionContext)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.