Package org.apache.hadoop.hbase.io.hfile
Class TestLruAdaptiveBlockCache.CachedItem
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestLruAdaptiveBlockCache.CachedItem
- 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:
- TestLruAdaptiveBlockCache
private static class TestLruAdaptiveBlockCache.CachedItem
extends Object
implements org.apache.hadoop.hbase.io.hfile.Cacheable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCachedItem(String blockName, int size) CachedItem(String blockName, int size, int offset) -
Method Summary
Modifier and TypeMethodDescriptionlongSize of the cache block holding this item.org.apache.hadoop.hbase.io.hfile.BlockTypeorg.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable>intlongheapSize()The size of this item reported to the block cache layervoidserialize(ByteBuffer destination, boolean includeNextBlockMetadata) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.io.hfile.Cacheable
refCnt, release, retainMethods inherited from interface org.apache.hadoop.hbase.nio.HBaseReferenceCounted
release, retain, touch, touch
-
Field Details
-
Constructor Details
-
CachedItem
CachedItem(String blockName, int size, int offset) -
CachedItem
CachedItem(String blockName, int size)
-
-
Method Details
-
heapSize
The size of this item reported to the block cache layer- Specified by:
heapSizein interfaceorg.apache.hadoop.hbase.io.HeapSize
-
cacheBlockHeapSize
Size of the cache block holding this item. Used for verification. -
getSerializedLength
- Specified by:
getSerializedLengthin interfaceorg.apache.hadoop.hbase.io.hfile.Cacheable
-
getDeserializer
public org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable> getDeserializer()- Specified by:
getDeserializerin interfaceorg.apache.hadoop.hbase.io.hfile.Cacheable
-
serialize
- Specified by:
serializein interfaceorg.apache.hadoop.hbase.io.hfile.Cacheable
-
getBlockType
- Specified by:
getBlockTypein interfaceorg.apache.hadoop.hbase.io.hfile.Cacheable
-