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
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.nio.ByteBuff
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.io.hfile.Cacheable
deserialize
(org.apache.hadoop.hbase.nio.ByteBuff b, org.apache.hadoop.hbase.io.ByteBuffAllocator alloc) int
void
setIdentifier
(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:
deserialize
in interfaceorg.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable>
- Throws:
IOException
-
setIdentifier
-
getDeserializerIdentifier
- Specified by:
getDeserializerIdentifier
in interfaceorg.apache.hadoop.hbase.io.hfile.CacheableDeserializer<org.apache.hadoop.hbase.io.hfile.Cacheable>
-