Package org.apache.hadoop.hbase.io
Class TestHeapSize
java.lang.Object
org.apache.hadoop.hbase.io.TestHeapSize
Testing the sizing that HeapSize offers and compares to the size given by ClassSize.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Logger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidprivate longcalcFixedOverhead(List<Class<?>> classList) voidvoidvoidvoidTest our hard-coded sizing of native java objectsvoidvoidvoidTesting the classes that implements HeapSize and are a part of 0.20.
- 
Field Details- 
CLASS_RULE
- 
LOG
 
- 
- 
Constructor Details- 
TestHeapSizepublic TestHeapSize()
 
- 
- 
Method Details- 
beforeClass- Throws:
- Exception
 
- 
testNativeSizesTest our hard-coded sizing of native java objects- Throws:
- IOException
 
- 
testSizesTesting the classes that implements HeapSize and are a part of 0.20. Some are not tested here for example BlockIndex which is tested in TestHFile since it is a non public class- Throws:
- IOException
 
- 
testHFileBlockSize- Throws:
- IOException
 
- 
testMutations
- 
testReferenceSize
- 
testObjectSize- Throws:
- IOException
 
- 
calcFixedOverhead
- 
testAutoCalcFixedOverhead- Throws:
- InterruptedException
 
 
-