Package org.apache.hadoop.hbase.io.hfile
Class HFileBlock.BlockDeserializer
java.lang.Object
org.apache.hadoop.hbase.io.hfile.HFileBlock.BlockDeserializer
- All Implemented Interfaces:
CacheableDeserializer<Cacheable>
- Enclosing class:
- HFileBlock
public static final class HFileBlock.BlockDeserializer
extends Object
implements CacheableDeserializer<Cacheable>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(ByteBuff buf, ByteBuffAllocator alloc) int
Get the identifier of this deserializer.
-
Constructor Details
-
BlockDeserializer
private BlockDeserializer()
-
-
Method Details
-
deserialize
- Specified by:
deserialize
in interfaceCacheableDeserializer<Cacheable>
- Parameters:
buf
- ByteBuff to deserialize the Cacheable.alloc
- to manage NIO ByteBuffers for future allocation or de-allocation.- Returns:
- T the deserialized object.
- Throws:
IOException
-
getDeserializerIdentifier
Description copied from interface:CacheableDeserializer
Get the identifier of this deserializer. Identifier is unique for each deserializer and generated byCacheableDeserializerIdManager
- Specified by:
getDeserializerIdentifier
in interfaceCacheableDeserializer<Cacheable>
- Returns:
- identifier number of this cacheable deserializer
-