Class TestTinyLfuBlockCache.CachedItem

java.lang.Object
org.apache.hadoop.hbase.io.hfile.TestTinyLfuBlockCache.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:
TestTinyLfuBlockCache

private static class TestTinyLfuBlockCache.CachedItem extends Object implements org.apache.hadoop.hbase.io.hfile.Cacheable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) org.apache.hadoop.hbase.io.hfile.BlockCacheKey
     
    (package private) int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CachedItem(String blockName, int size)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.hbase.io.hfile.BlockType
     
    org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable>
     
    int
     
    long
    The size of this item reported to the block cache layer
    void
    serialize(ByteBuffer destination, boolean includeNextBlockMetadata)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.hadoop.hbase.io.hfile.Cacheable

    refCnt, release, retain

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

    release, retain, touch, touch
  • Field Details

    • cacheKey

      org.apache.hadoop.hbase.io.hfile.BlockCacheKey cacheKey
    • size

      int size
  • Constructor Details

  • Method Details

    • heapSize

      public long heapSize()
      The size of this item reported to the block cache layer
      Specified by:
      heapSize in interface org.apache.hadoop.hbase.io.HeapSize
    • getSerializedLength

      public int getSerializedLength()
      Specified by:
      getSerializedLength in interface org.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:
      getDeserializer in interface org.apache.hadoop.hbase.io.hfile.Cacheable
    • getBlockType

      public org.apache.hadoop.hbase.io.hfile.BlockType getBlockType()
      Specified by:
      getBlockType in interface org.apache.hadoop.hbase.io.hfile.Cacheable
    • serialize

      public void serialize(ByteBuffer destination, boolean includeNextBlockMetadata)
      Specified by:
      serialize in interface org.apache.hadoop.hbase.io.hfile.Cacheable