|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Private public interface Cacheable
Cacheable is an interface that allows for an object to be cached. If using an on heap cache, just use heapsize. If using an off heap cache, Cacheable provides methods for serialization of the object. Some objects cannot be moved off heap, those objects will return a getSerializedLength() of 0.
Method Summary | |
---|---|
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)
Serializes its data into destination. |
Methods inherited from interface org.apache.hadoop.hbase.io.HeapSize |
---|
heapSize |
Method Detail |
---|
int getSerializedLength()
void serialize(ByteBuffer destination)
CacheableDeserializer<Cacheable> getDeserializer()
BlockType getBlockType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |