java.lang.Object
org.elasticsearch.xpack.core.common.search.aggregations.MissingHelper
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.core.Releasable

public class MissingHelper extends Object implements org.elasticsearch.core.Releasable
Helps long-valued BucketedSort.ExtraData track "empty" slots. It attempts to have very low CPU overhead and no memory overhead when there *aren't* empty values.
  • Constructor Details

    • MissingHelper

      public MissingHelper(BigArrays bigArrays)
  • Method Details

    • markMissing

      public void markMissing(long index)
    • markNotMissing

      public void markNotMissing(long index)
    • swap

      public void swap(long lhs, long rhs)
    • isEmpty

      public boolean isEmpty(long index)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.elasticsearch.core.Releasable