Class CardinalityUpperBound
java.lang.Object
org.elasticsearch.search.aggregations.CardinalityUpperBound
Upper bound of how many
owningBucketOrds
that an Aggregator
will have to collect into.-
Field Summary
Modifier and TypeFieldDescriptionstatic CardinalityUpperBound
Aggregator
s with this cardinality may be collected many times.static CardinalityUpperBound
Aggregator
s with this cardinality won't collect any data at all.static CardinalityUpperBound
Aggregator
s with this cardinality will collect be collected once or zero times. -
Method Summary
Modifier and TypeMethodDescriptionabstract <R> R
map(IntFunction<R> mapper)
Map the cardinality to a value.abstract CardinalityUpperBound
multiply(int bucketCount)
Get the rough measure of the number of buckets a fixed-bucketAggregator
will collect.
-
Field Details
-
NONE
Aggregator
s with this cardinality won't collect any data at all. For the most part this happens when an aggregation is inside of aBucketsAggregator
that is pointing to an unmapped field. -
ONE
Aggregator
s with this cardinality will collect be collected once or zero times. This will only be true for top level Aggregators and for sub-aggregator's who's ancestors are all single-bucket aggregations likeFilterAggregator
or aRangeAggregator
configured to collect only a single range. -
MANY
Aggregator
s with this cardinality may be collected many times. Most sub-aggregators ofBucketsAggregator
s will have this cardinality.
-
-
Method Details
-
multiply
Get the rough measure of the number of buckets a fixed-bucketAggregator
will collect.- Parameters:
bucketCount
- the number of buckets that thisAggregator
will collect per owning ordinal
-
map
Map the cardinality to a value. The argument to themapper
is the estimated cardinality, orInteger.MAX_VALUE
if the cardinality is unknown.
-