Package org.elasticsearch.search.aggregations
Builds analytic information over all hits in a search request.
-
Interface Summary Interface Description Aggregation An aggregation.Aggregator.BucketComparator Compare two buckets by their ordinal.Aggregator.Parser Parses the aggregation request and creates the appropriate aggregator factory for it.BaseAggregationBuilder Interface shared byAggregationBuilderandPipelineAggregationBuilderso they can conveniently share the same namespace forXContentParser.namedObject(Class, String, Object).HasAggregations InternalAggregation.ReduceContextBuilder KeyComparable<T extends MultiBucketsAggregation.Bucket & KeyComparable<T>> Defines behavior for comparingbucket keysto 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 anAggregatorof 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 ofAggregationsAggregator An Aggregator.AggregatorBase Base implementation for concrete aggregators.AggregatorFactories An immutable collection ofAggregatorFactories.AggregatorFactories.Builder A mutable collection ofAggregationBuilders andPipelineAggregationBuilders.AggregatorFactory BucketCollector A Collector that can collect data in separate buckets.BucketOrder MultiBucketsAggregation.Bucketordering 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.Bucketordering strategies.InternalOrder.Aggregation MultiBucketsAggregation.Bucketordering strategy to sort by a sub-aggregation.InternalOrder.CompoundOrder MultiBucketsAggregation.Bucketordering strategy to sort by multiple criteria.InternalOrder.Parser Contains logic for parsing aBucketOrderfrom aXContentParser.InternalOrder.Streams Contains logic for reading/writingBucketOrderfrom/to streams.LeafBucketCollector Per-leaf bucket collector.LeafBucketCollectorBase ALeafBucketCollectorthat delegates all calls to the sub leaf aggregator and sets the scorer on its source of values if it implementsScorerAware.MultiBucketCollector ABucketCollectorwhich allows running a bucket collection with severalBucketCollectors.MultiBucketConsumerService An aggregation service that creates instances ofMultiBucketConsumerService.MultiBucketConsumer.MultiBucketConsumerService.MultiBucketConsumer AnIntConsumerthat throws aMultiBucketConsumerService.TooManyBucketsExceptionwhen 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 ofAggregationthat is parsed from a REST response.ParsedMultiBucketAggregation<B extends MultiBucketsAggregation.Bucket> ParsedMultiBucketAggregation.ParsedBucket PipelineAggregationBuilder A factory that knows how to create anPipelineAggregatorof a specific type.PipelineAggregationBuilder.ValidationContext PipelineAggregatorBuilders SearchContextAggregations The aggregation context that is part of the search context. -
Enum Summary Enum Description AggregationBuilder.BucketCardinality A rough count of the number of buckets thatAggregators built by this builder will contain per parent bucket used to validate sorts and pipeline aggregations.Aggregator.SubAggCollectionMode Aggregation mode for sub aggregations.CardinalityUpperBound Upper bound of how manyowningBucketOrdsthat anAggregatorwill have to collect into. -
Exception Summary Exception Description AggregationExecutionException Thrown when failing to execute an aggregationAggregationInitializationException Thrown when failing to execute an aggregationInvalidAggregationPathException MultiBucketConsumerService.TooManyBucketsException