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 Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.nio.ByteBuffprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.io.hfile.Cacheabledeserialize(org.apache.hadoop.hbase.nio.ByteBuff b, org.apache.hadoop.hbase.io.ByteBuffAllocator alloc) intvoidsetIdentifier(int identifier)
-
Field Details
-
buf
-
identifier
-
-
Constructor Details
-
BufferGrabbingDeserializer
-
-
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:
deserializein interfaceorg.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable>- Throws:
IOException
-
setIdentifier
-
getDeserializerIdentifier
- Specified by:
getDeserializerIdentifierin interfaceorg.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable>
-