@InterfaceAudience.Private public interface HFileBlockDecodingContext
for encoding
Modifier and Type | Method and Description |
---|---|
HFileContext |
getHFileContext() |
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.
|
void prepareDecoding(int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, ByteBuffer blockBufferWithoutHeader, byte[] onDiskBlock, int offset) throws IOException
HFileContext.getCompression()
returns a valid compression
algorithm.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
HFileContext getHFileContext()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.