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 Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private long
calcFixedOverhead
(List<Class<?>> classList) void
void
void
void
Test our hard-coded sizing of native java objectsvoid
void
void
Testing the classes that implements HeapSize and are a part of 0.20.
-
Field Details
-
CLASS_RULE
-
LOG
-
-
Constructor Details
-
TestHeapSize
public TestHeapSize()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
testNativeSizes
Test our hard-coded sizing of native java objects- Throws:
IOException
-
testSizes
Testing 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
-