Package org.apache.hadoop.hbase.io.hfile
Interface CacheableDeserializer<T extends Cacheable>
- All Known Implementing Classes:
HFileBlock.BlockDeserializer
Interface for a deserializer. Throws an IOException if the serialized data is incomplete or
wrong.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(ByteBuff b, ByteBuffAllocator allocator) int
Get the identifier of this deserializer.
-
Method Details
-
deserialize
- Parameters:
b
- ByteBuff to deserialize the Cacheable.allocator
- to manage NIO ByteBuffers for future allocation or de-allocation.- Returns:
- T the deserialized object.
- Throws:
IOException
-
getDeserializerIdentifier
Get the identifier of this deserializer. Identifier is unique for each deserializer and generated byCacheableDeserializerIdManager
- Returns:
- identifier number of this cacheable deserializer
-