private static class TestRAMCache.MockHFileBlock extends org.apache.hadoop.hbase.io.hfile.HFileBlock
Modifier and Type | Field and Description |
---|---|
private CountDownLatch |
latch |
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
TestRAMCache.MockHFileBlock |
retain() |
void |
setLatch(CountDownLatch latch) |
equals, getBlockType, getBufferReadOnly, getBufferWithoutHeader, getBufferWithoutHeader, getByteBuffAllocator, getDeserializer, getMetaData, getOnDiskSizeWithHeader, getSerializedLength, hashCode, headerSize, headerSize, heapSize, isSharedMem, isUnpacked, refCnt, release, serialize, toString
private volatile CountDownLatch latch
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)
public void setLatch(CountDownLatch latch)
public TestRAMCache.MockHFileBlock retain()
retain
in interface org.apache.hadoop.hbase.io.hfile.Cacheable
retain
in interface org.apache.hbase.thirdparty.io.netty.util.ReferenceCounted
retain
in class org.apache.hadoop.hbase.io.hfile.HFileBlock
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.