@InterfaceAudience.Private
public interface CacheableDeserializer<T extends Cacheable>
Modifier and Type | Method and Description |
---|---|
T |
deserialize(ByteBuff b)
Returns the deserialized object.
|
T |
deserialize(ByteBuff b,
boolean reuse,
Cacheable.MemoryType memType) |
int |
getDeserialiserIdentifier()
Get the identifier of this deserialiser.
|
T deserialize(ByteBuff b) throws IOException
IOException
T deserialize(ByteBuff b, boolean reuse, Cacheable.MemoryType memType) throws IOException
b
- reuse
- true if Cacheable object can use the given buffer as its
contentmemType
- the Cacheable.MemoryType
of the bufferIOException
int getDeserialiserIdentifier()
CacheableDeserializerIdManager
Copyright © 2007–2019 Cloudera. All rights reserved.