Class TestByteBufferIOEngine.BufferGrabbingDeserializer

java.lang.Object
org.apache.hadoop.hbase.io.hfile.bucket.TestByteBufferIOEngine.BufferGrabbingDeserializer
All Implemented Interfaces:
org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable>
Enclosing class:
TestByteBufferIOEngine

static class TestByteBufferIOEngine.BufferGrabbingDeserializer extends Object implements org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable>
A CacheableDeserializer implementation which just store reference to the ByteBuff to be deserialized.
  • Field Details

    • buf

      private org.apache.hadoop.hbase.nio.ByteBuff buf
    • identifier

      private int identifier
  • Constructor Details

  • Method Details

    • deserialize

      public org.apache.hadoop.hbase.io.hfile.Cacheable deserialize(org.apache.hadoop.hbase.nio.ByteBuff b, org.apache.hadoop.hbase.io.ByteBuffAllocator alloc) throws IOException
      Specified by:
      deserialize in interface org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable>
      Throws:
      IOException
    • setIdentifier

      public void setIdentifier(int identifier)
    • getDeserializerIdentifier

      Specified by:
      getDeserializerIdentifier in interface org.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable>