@InterfaceAudience.Private public interface Cacheable extends HeapSize
Modifier and Type | Method and Description |
---|---|
BlockType |
getBlockType() |
CacheableDeserializer<Cacheable> |
getDeserializer()
Returns CacheableDeserializer instance which reconstructs original object from ByteBuffer.
|
int |
getSerializedLength()
Returns the length of the ByteBuffer required to serialized the object.
|
void |
serialize(ByteBuffer destination,
boolean includeNextBlockOnDiskSize)
Serializes its data into destination.
|
int getSerializedLength()
void serialize(ByteBuffer destination, boolean includeNextBlockOnDiskSize)
destination
- Where to serialize toincludeNextBlockOnDiskSize
- Whether to include nextBlockMetadata in the Cache block.CacheableDeserializer<Cacheable> getDeserializer()
BlockType getBlockType()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.