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 Details

  • Constructor Details

    • MemoryTrackingTDigestIntArray

      public MemoryTrackingTDigestIntArray(CircuitBreaker breaker, int initialSize)
    • MemoryTrackingTDigestIntArray

      public MemoryTrackingTDigestIntArray(CircuitBreaker breaker, int[] array)
  • Method Details

    • estimatedRamBytesUsed

      public static long estimatedRamBytesUsed(int size)
    • ramBytesUsed

      public long ramBytesUsed()
      Specified by:
      ramBytesUsed in interface org.apache.lucene.util.Accountable
    • size

      public int size()
      Specified by:
      size in interface TDigestIntArray
    • get

      public int get(int index)
      Specified by:
      get in interface TDigestIntArray
    • set

      public void set(int index, int value)
      Specified by:
      set in interface TDigestIntArray
    • resize

      public void resize(int newSize)
      Specified by:
      resize in interface TDigestIntArray
    • close

      public final void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Releasable