Class CardinalityUpperBound

java.lang.Object
org.elasticsearch.search.aggregations.CardinalityUpperBound

public abstract class CardinalityUpperBound extends Object
Upper bound of how many owningBucketOrds that an Aggregator will have to collect into.
  • Field Details

  • Method Details

    • multiply

      public abstract CardinalityUpperBound multiply(int bucketCount)
      Get the rough measure of the number of buckets a fixed-bucket Aggregator will collect.
      Parameters:
      bucketCount - the number of buckets that this Aggregator will collect per owning ordinal
    • map

      public abstract <R> R map(IntFunction<R> mapper)
      Map the cardinality to a value. The argument to the mapper is the estimated cardinality, or Integer.MAX_VALUE if the cardinality is unknown.