Class TestRAMCache.MockHFileBlock

java.lang.Object
org.apache.hadoop.hbase.io.hfile.HFileBlock
org.apache.hadoop.hbase.io.hfile.bucket.TestRAMCache.MockHFileBlock
All Implemented Interfaces:
org.apache.hadoop.hbase.io.HeapSize, org.apache.hadoop.hbase.io.hfile.Cacheable, org.apache.hadoop.hbase.nio.HBaseReferenceCounted, org.apache.hbase.thirdparty.io.netty.util.ReferenceCounted
Enclosing class:
TestRAMCache

private static class TestRAMCache.MockHFileBlock extends org.apache.hadoop.hbase.io.hfile.HFileBlock
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.hbase.io.hfile.HFileBlock

    org.apache.hadoop.hbase.io.hfile.HFileBlock.BlockDeserializer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class org.apache.hadoop.hbase.io.hfile.HFileBlock

    BLOCK_DESERIALIZER, BLOCK_METADATA_SPACE, DONT_FILL_HEADER, FILL_HEADER, FIXED_OVERHEAD, MULTI_BYTE_BUFFER_HEAP_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    MockHFileBlock(org.apache.hadoop.hbase.io.hfile.BlockType blockType, int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, long prevBlockOffset, ByteBuffer b, boolean fillHeader, long offset, int nextBlockOnDiskSize, int onDiskDataSizeWithHeader, org.apache.hadoop.hbase.io.hfile.HFileContext fileContext, org.apache.hadoop.hbase.io.ByteBuffAllocator allocator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     

    Methods inherited from class org.apache.hadoop.hbase.io.hfile.HFileBlock

    equals, getBlockType, getBufferReadOnly, getBufferWithoutHeader, getByteBuffAllocator, getDeserializer, getHFileContext, getMetaData, getOnDiskSizeWithHeader, getSerializedLength, getUncompressedSizeWithoutHeader, hashCode, headerSize, headerSize, heapSize, isSharedMem, isUnpacked, refCnt, release, serialize, toString, touch, touch

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.hadoop.hbase.nio.HBaseReferenceCounted

    release, retain
  • Field Details

  • Constructor Details

    • MockHFileBlock

      MockHFileBlock(org.apache.hadoop.hbase.io.hfile.BlockType blockType, int onDiskSizeWithoutHeader, int uncompressedSizeWithoutHeader, long prevBlockOffset, ByteBuffer b, boolean fillHeader, long offset, int nextBlockOnDiskSize, int onDiskDataSizeWithHeader, org.apache.hadoop.hbase.io.hfile.HFileContext fileContext, org.apache.hadoop.hbase.io.ByteBuffAllocator allocator)
  • Method Details

    • setLatch

      public void setLatch(CountDownLatch latch)
    • retain

      Specified by:
      retain in interface org.apache.hadoop.hbase.io.hfile.Cacheable
      Specified by:
      retain in interface org.apache.hbase.thirdparty.io.netty.util.ReferenceCounted
      Overrides:
      retain in class org.apache.hadoop.hbase.io.hfile.HFileBlock