Package org.apache.hadoop.hbase.util
Class ClassSize.UnsafeLayout
java.lang.Object
org.apache.hadoop.hbase.util.ClassSize.MemoryLayout
org.apache.hadoop.hbase.util.ClassSize.UnsafeLayout
- Enclosing class:
- ClassSize
UnsafeLayout uses Unsafe to guesstimate the object-layout related parameters like object header
sizes and oop sizes See HBASE-15950.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) int
(package private) int
(package private) int
oopSize()
Return the size of an "ordinary object pointer".(package private) long
sizeOfByteArray
(int len) Methods inherited from class org.apache.hadoop.hbase.util.ClassSize.MemoryLayout
align
-
Field Details
-
ARRAY_OBJECT_INDEX_SCALE
-
ARRAY_BYTE_INDEX_SCALE
-
-
Constructor Details
-
UnsafeLayout
public UnsafeLayout()
-
-
Method Details
-
headerSize
int headerSize()- Overrides:
headerSize
in classClassSize.MemoryLayout
-
arrayHeaderSize
int arrayHeaderSize()- Overrides:
arrayHeaderSize
in classClassSize.MemoryLayout
-
oopSize
int oopSize()Description copied from class:ClassSize.MemoryLayout
Return the size of an "ordinary object pointer". Either 4 or 8, depending on 32/64 bit, and CompressedOops- Overrides:
oopSize
in classClassSize.MemoryLayout
-
sizeOfByteArray
- Overrides:
sizeOfByteArray
in classClassSize.MemoryLayout
-