@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| Constructor and Description |
|---|
HFileBlockDefaultDecodingContext(org.apache.hadoop.conf.Configuration conf,
HFileContext fileContext) |
| Modifier and Type | Method and Description |
|---|---|
HFileContext |
getHFileContext()
Returns HFile meta information
|
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) |
public HFileBlockDefaultDecodingContext(org.apache.hadoop.conf.Configuration conf,
HFileContext fileContext)
public void prepareDecoding(int onDiskSizeWithoutHeader,
int uncompressedSizeWithoutHeader,
ByteBuff blockBufferWithoutHeader,
ByteBuff onDiskBlock)
throws IOException
HFileBlockDecodingContextHFileContext.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 decodedprepareDecoding in interface HFileBlockDecodingContextIOExceptionpublic HFileContext getHFileContext()
HFileBlockDecodingContextgetHFileContext in interface HFileBlockDecodingContextpublic TagCompressionContext getTagCompressionContext()
public void setTagCompressionContext(TagCompressionContext tagCompressionContext)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.