Class RamUsageUtil
java.lang.Object
org.apache.lucene.codecs.uniformsplit.RamUsageUtil
Utility methods to estimate the RAM usage of objects. It relies on
RamUsageEstimator.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longramBytesUsed(TermState termState) static longramBytesUsed(BytesRef bytesRef) static longramBytesUsed(BytesRefBuilder bytesRefBuilder) static longramBytesUsedByByteArrayOfLength(int length) static longramBytesUsedByHashMapOfSize(int size) static longramBytesUsedByObjectArrayOfLength(int length) static long
-
Constructor Details
-
RamUsageUtil
public RamUsageUtil()
-
-
Method Details
-
ramBytesUsed
-
ramBytesUsed
-
ramBytesUsed
-
ramBytesUsedByByteArrayOfLength
public static long ramBytesUsedByByteArrayOfLength(int length) -
ramBytesUsedByHashMapOfSize
public static long ramBytesUsedByHashMapOfSize(int size) -
ramBytesUsedByUnmodifiableArrayListOfSize
public static long ramBytesUsedByUnmodifiableArrayListOfSize(int size) -
ramBytesUsedByObjectArrayOfLength
public static long ramBytesUsedByObjectArrayOfLength(int length)
-