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 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
ConstructorDescriptionMockHFileBlock
(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
Methods inherited from class org.apache.hadoop.hbase.io.hfile.HFileBlock
equals, getBlockType, getBufferReadOnly, getBufferWithoutHeader, getByteBuffAllocator, getDeserializer, getHFileContext, getMetaData, getOffset, 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
-
latch
-
-
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
-
retain
- Specified by:
retain
in interfaceorg.apache.hadoop.hbase.io.hfile.Cacheable
- Specified by:
retain
in interfaceorg.apache.hbase.thirdparty.io.netty.util.ReferenceCounted
- Overrides:
retain
in classorg.apache.hadoop.hbase.io.hfile.HFileBlock
-