Package org.elasticsearch.search.aggregations
Builds analytic information over all hits in a search request.
-
Interface Summary Interface Description Aggregation An aggregation.Aggregator.Parser Parses the aggregation request and creates the appropriate aggregator factory for it.BaseAggregationBuilder Interface shared byAggregationBuilder
andPipelineAggregationBuilder
so they can conveniently share the same namespace forXContentParser.namedObject(Class, String, Object)
.HasAggregations KeyComparable<T extends MultiBucketsAggregation.Bucket & KeyComparable<T>> Defines behavior for comparingbucket keys
to imposes a total ordering of buckets of the same type. -
Class Summary Class Description AbstractAggregationBuilder<AB extends AbstractAggregationBuilder<AB>> Base implementation of aAggregationBuilder
.Aggregation.CommonFields Common xcontent fields that are shared among addAggregationAggregationBuilder A factory that knows how to create anAggregator
of a specific type.AggregationBuilder.CommonFields Common xcontent fields shared among aggregator buildersAggregationBuilders Utility class to create aggregations.AggregationPhase Aggregation phase of a search request, used to collect aggregationsAggregations Represents a set ofAggregation
sAggregator An Aggregator.AggregatorBase Base implementation for concrete aggregators.AggregatorFactories AggregatorFactories.AggParseContext Context to parse and aggregation.AggregatorFactories.Builder AggregatorFactory<AF extends AggregatorFactory<AF>> AggregatorFactory.MultiBucketAggregatorWrapper BucketCollector A Collector that can collect data in separate buckets.BucketOrder MultiBucketsAggregation.Bucket
Ordering strategy.InternalAggregation An internal implementation ofAggregation
.InternalAggregation.ReduceContext InternalAggregations An internal implementation ofAggregations
.InternalMultiBucketAggregation<A extends InternalMultiBucketAggregation,B extends InternalMultiBucketAggregation.InternalBucket> InternalMultiBucketAggregation.InternalBucket InternalOrder Implementations forMultiBucketsAggregation.Bucket
ordering strategies.InternalOrder.Aggregation MultiBucketsAggregation.Bucket
ordering strategy to sort by a sub-aggregation.InternalOrder.CompoundOrder MultiBucketsAggregation.Bucket
ordering strategy to sort by multiple criteria.InternalOrder.Parser Contains logic for parsing aBucketOrder
from aXContentParser
.InternalOrder.Streams Contains logic for reading/writingBucketOrder
from/to streams.LeafBucketCollector Per-leaf bucket collector.LeafBucketCollectorBase ALeafBucketCollector
that delegates all calls to the sub leaf aggregator and sets the scorer on its source of values if it implementsScorerAware
.MultiBucketCollector ABucketCollector
which allows running a bucket collection with severalBucketCollector
s.MultiBucketConsumerService An aggregation service that creates instances ofMultiBucketConsumerService.MultiBucketConsumer
.MultiBucketConsumerService.MultiBucketConsumer AnIntConsumer
that throws aMultiBucketConsumerService.TooManyBucketsException
when the sum of the provided values is above the limit (`search.max_buckets`).NonCollectingAggregator An aggregator that is not collected, this can typically be used when running an aggregation over a field that doesn't have a mapping.ParsedAggregation An implementation ofAggregation
that is parsed from a REST response.ParsedMultiBucketAggregation<B extends MultiBucketsAggregation.Bucket> ParsedMultiBucketAggregation.ParsedBucket PipelineAggregationBuilder A factory that knows how to create anPipelineAggregator
of a specific type.SearchContextAggregations The aggregation context that is part of the search context. -
Enum Summary Enum Description Aggregator.SubAggCollectionMode Aggregation mode for sub aggregations. -
Exception Summary Exception Description AggregationExecutionException Thrown when failing to execute an aggregationAggregationInitializationException Thrown when failing to execute an aggregationInvalidAggregationPathException MultiBucketConsumerService.TooManyBucketsException