Class CardinalityUpperBound

org.elasticsearch.search.aggregations.CardinalityUpperBound

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

    Fields
    Modifier and Type
    Field
    Description
    Aggregators with this cardinality may be collected many times.
    Aggregators with this cardinality won't collect any data at all.
    Aggregators with this cardinality will collect be collected once or zero times.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract <R> R
    <R> mapper)
    Map the cardinality to a value.
    multiply​(int bucketCount)
    Get the rough measure of the number of buckets a fixed-bucket Aggregator will collect.

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • 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(<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.