org.apache.hadoop.hbase.io
Interface HeapSize

All Known Implementing Classes:
BatchOperation, BatchUpdate, HStoreKey, HStoreKey.BeforeThisStoreKey

public interface HeapSize

Implementations can be asked for an estimate of their size in bytes. Useful for sizing caches. Its a given that implementation approximations probably do not account for 32 vs 64 bit nor for different VM implemenations.


Method Summary
 long heapSize()
           
 

Method Detail

heapSize

long heapSize()
Returns:
Approximate 'exclusive deep size' of implementing object. Includes count of payload and hosting object sizings.


Copyright © 2008 The Apache Software Foundation