Interface HFileBlockDecodingContext

All Known Implementing Classes:
HFileBlockDefaultDecodingContext

@Private public interface HFileBlockDecodingContext
A decoding context that is created by a reader's encoder, and is shared across all of the reader's read operations.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns HFile meta information
    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.
  • Method Details

    • prepareDecoding

      void prepareDecoding(int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, ByteBuff blockBufferWithoutHeader, ByteBuff onDiskBlock) throws IOException
      Perform all actions that need to be done before the encoder's real decoding process. Decompression needs to be done if HFileContext.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
      Throws:
      IOException
    • getHFileContext

      Returns HFile meta information