com.groupbyinc.flux.common.apache.lucene.util.RamUsageEstimator.class Maven / Gradle / Ivy
???? 4? ?com/groupbyinc/flux/common/apache/lucene/util/RamUsageEstimator java/lang/Object RamUsageEstimator.java Acom/groupbyinc/flux/common/apache/lucene/util/RamUsageEstimator$1 ONE_KB J ONE_MB ONE_GB @ NUM_BYTES_BOOLEAN I Ljava/lang/Deprecated; NUM_BYTES_BYTE NUM_BYTES_CHAR NUM_BYTES_SHORT
NUM_BYTES_INT NUM_BYTES_FLOAT NUM_BYTES_LONG NUM_BYTES_DOUBLE COMPRESSED_REFS_ENABLED Z NUM_BYTES_OBJECT_REF NUM_BYTES_OBJECT_HEADER NUM_BYTES_ARRAY_HEADER NUM_BYTES_OBJECT_ALIGNMENT primitiveSizes Ljava/util/Map; 8Ljava/util/Map;Ljava/lang/Integer;>; LONG_CACHE_MIN_VALUE LONG_CACHE_MAX_VALUE LONG_SIZE JVM_IS_HOTSPOT_64BIT MANAGEMENT_FACTORY_CLASS Ljava/lang/String; &java.lang.management.ManagementFactory / HOTSPOT_BEAN_CLASS Acom.groupbyinc.flux.common.sun.management.HotSpotDiagnosticMXBean 2 ()V 4 5
6 this ALcom/groupbyinc/flux/common/apache/lucene/util/RamUsageEstimator; alignObjectSize (J)J % < size sizeOf (Ljava/lang/Long;)J java/lang/Long A longValue ()J C D
B E ) G * I + K value Ljava/lang/Long; ([B)J $ P : ;
R arr [B ([Z)J [Z ([C)J [C ([S)J [S ([I)J [I ([F)J [F ([J)J [J ([D)J [D
shallowSizeOf ([Ljava/lang/Object;)J " l [Ljava/lang/Object; (Ljava/lang/Object;)J getClass ()Ljava/lang/Class; p q
r java/lang/Class t isArray ()Z v w
u x shallowSizeOfArray z o
{ shallowSizeOfInstance (Ljava/lang/Class;)J } ~
obj Ljava/lang/Object; clz Ljava/lang/Class<*>; Ljava/lang/Class; "java/lang/IllegalArgumentException ? -This method does not work with array classes. ? (Ljava/lang/String;)V 4 ?
? ? isPrimitive ? w
u ? &