Module org.elasticsearch.server
Class MemoryTrackingTDigestArrays.MemoryTrackingTDigestIntArray
java.lang.Object
org.elasticsearch.search.aggregations.metrics.MemoryTrackingTDigestArrays.MemoryTrackingTDigestIntArray
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.util.Accountable,Releasable,TDigestIntArray
- Enclosing class:
MemoryTrackingTDigestArrays
public static class MemoryTrackingTDigestArrays.MemoryTrackingTDigestIntArray
extends Object
implements TDigestIntArray
-
Field Summary
FieldsFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionMemoryTrackingTDigestIntArray(CircuitBreaker breaker, int initialSize) MemoryTrackingTDigestIntArray(CircuitBreaker breaker, int[] array) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResourcesMethods inherited from interface org.elasticsearch.core.Releasable
closeMethods inherited from interface org.elasticsearch.tdigest.arrays.TDigestIntArray
set
-
Field Details
-
breaker
-
-
Constructor Details
-
MemoryTrackingTDigestIntArray
-
MemoryTrackingTDigestIntArray
-
-
Method Details
-
estimatedRamBytesUsed
public static long estimatedRamBytesUsed(int size) -
ramBytesUsed
public long ramBytesUsed()- Specified by:
ramBytesUsedin interfaceorg.apache.lucene.util.Accountable
-
size
public int size()- Specified by:
sizein interfaceTDigestIntArray
-
get
public int get(int index) - Specified by:
getin interfaceTDigestIntArray
-
set
public void set(int index, int value) - Specified by:
setin interfaceTDigestIntArray
-
resize
public void resize(int newSize) - Specified by:
resizein interfaceTDigestIntArray
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-