Module org.elasticsearch.compute
Package org.elasticsearch.compute.data
Class BlockRamUsageEstimator
java.lang.Object
org.elasticsearch.compute.data.BlockRamUsageEstimator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longsizeOf(int[] arr) Returns the size in bytes of the int[] object.static longsizeOfBitSet(long size) static longsizeOfBitSet(BitSet bitset) Returns the size in bytes used by the bitset.
-
Constructor Details
-
BlockRamUsageEstimator
public BlockRamUsageEstimator()
-
-
Method Details
-
sizeOf
public static long sizeOf(@Nullable int[] arr) Returns the size in bytes of the int[] object. Otherwise, returns 0 if null. -
sizeOfBitSet
Returns the size in bytes used by the bitset. Otherwise, returns 0 if null. Not exact, but good enough -
sizeOfBitSet
public static long sizeOfBitSet(long size)
-