Class CacheTestUtils.ByteArrayCacheable

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

public static class CacheTestUtils.ByteArrayCacheable extends Object implements org.apache.hadoop.hbase.io.hfile.Cacheable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable>
     
    (package private) final byte[]
     
    private static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ByteArrayCacheable(byte[] buf)
     
  • 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
     
    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

    • blockDeserializer

      private static final org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable> blockDeserializer
    • buf

      final byte[] buf
    • deserializerIdentifier

      private static final int deserializerIdentifier
  • Constructor Details

  • Method Details

    • heapSize

      public long heapSize()
      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
    • serialize

      public void serialize(ByteBuffer destination, boolean includeNextBlockMetadata)
      Specified by:
      serialize 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