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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int(package private) int(package private) intoopSize()Return the size of an "ordinary object pointer".(package private) longsizeOfByteArray(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:
headerSizein classClassSize.MemoryLayout
-
arrayHeaderSize
int arrayHeaderSize()- Overrides:
arrayHeaderSizein classClassSize.MemoryLayout
-
oopSize
int oopSize()Description copied from class:ClassSize.MemoryLayoutReturn the size of an "ordinary object pointer". Either 4 or 8, depending on 32/64 bit, and CompressedOops- Overrides:
oopSizein classClassSize.MemoryLayout
-
sizeOfByteArray
- Overrides:
sizeOfByteArrayin classClassSize.MemoryLayout
-