@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(Compression.Algorithm compressAlgo) |
Modifier and Type | Method and Description |
---|---|
Compression.Algorithm |
getCompression() |
void |
prepareDecoding(int onDiskSizeWithoutHeader,
int uncompressedSizeWithoutHeader,
ByteBuffer blockBufferWithoutHeader,
byte[] onDiskBlock,
int offset)
Perform all actions that need to be done before the encoder's real decoding process.
|
public HFileBlockDefaultDecodingContext(Compression.Algorithm compressAlgo)
public void prepareDecoding(int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, ByteBuffer blockBufferWithoutHeader, byte[] onDiskBlock, int offset) throws IOException
HFileBlockDecodingContext
HFileBlockDecodingContext.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 bytes to be decodedoffset
- data start offset in onDiskBlockIOException
public Compression.Algorithm getCompression()
getCompression
in interface HFileBlockDecodingContext
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.