Class RamUsageUtil
- java.lang.Object
-
- org.apache.lucene.codecs.uniformsplit.RamUsageUtil
-
public class RamUsageUtil extends Object
Utility methods to estimate the RAM usage of objects. It relies onRamUsageEstimator.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description RamUsageUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longramBytesUsed(TermState termState)static longramBytesUsed(BytesRef bytesRef)static longramBytesUsed(BytesRefBuilder bytesRefBuilder)static longramBytesUsedByByteArrayOfLength(int length)static longramBytesUsedByHashMapOfSize(int size)static longramBytesUsedByObjectArrayOfLength(int length)static longramBytesUsedByUnmodifiableArrayListOfSize(int size)
-
-
-
Method Detail
-
ramBytesUsed
public static long ramBytesUsed(BytesRef bytesRef)
-
ramBytesUsed
public static long ramBytesUsed(BytesRefBuilder bytesRefBuilder)
-
ramBytesUsed
public static long ramBytesUsed(TermState termState)
-
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)
-
-