public class RamUsageUtil extends Object
RamUsageEstimator
.Constructor and Description |
---|
RamUsageUtil() |
Modifier and Type | Method and Description |
---|---|
static long |
ramBytesUsed(BytesRef bytesRef) |
static long |
ramBytesUsed(BytesRefBuilder bytesRefBuilder) |
static long |
ramBytesUsed(TermState termState) |
static long |
ramBytesUsedByByteArrayOfLength(int length) |
static long |
ramBytesUsedByHashMapOfSize(int size) |
static long |
ramBytesUsedByObjectArrayOfLength(int length) |
static long |
ramBytesUsedByUnmodifiableArrayListOfSize(int size) |
public static long ramBytesUsed(BytesRef bytesRef)
public static long ramBytesUsed(BytesRefBuilder bytesRefBuilder)
public static long ramBytesUsed(TermState termState)
public static long ramBytesUsedByByteArrayOfLength(int length)
public static long ramBytesUsedByHashMapOfSize(int size)
public static long ramBytesUsedByUnmodifiableArrayListOfSize(int size)
public static long ramBytesUsedByObjectArrayOfLength(int length)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.