Module org.elasticsearch.server
Class MetricsAggregator
java.lang.Object
org.elasticsearch.search.aggregations.BucketCollector
org.elasticsearch.search.aggregations.Aggregator
org.elasticsearch.search.aggregations.AggregatorBase
org.elasticsearch.search.aggregations.metrics.MetricsAggregator
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Releasable
- Direct Known Subclasses:
NumericMetricsAggregator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.Aggregator
Aggregator.BucketComparator, Aggregator.Parser, Aggregator.SubAggCollectionMode
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.BucketCollector
BucketCollector.BucketCollectorWrapper
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.AggregatorBase
collectableSubAggregators, DEFAULT_WEIGHT, name, parent, subAggregators
Fields inherited from class org.elasticsearch.search.aggregations.BucketCollector
NO_OP_BUCKET_COLLECTOR, NO_OP_COLLECTOR
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MetricsAggregator
(String name, AggregationContext context, Aggregator parent, Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescriptionabstract InternalAggregation
buildAggregation
(long owningBucketOrd) Build an aggregation for data that has been collected intoowningBucketOrd
.final InternalAggregation[]
buildAggregations
(long[] owningBucketOrds) Build the results of this aggregation.Methods inherited from class org.elasticsearch.search.aggregations.AggregatorBase
addRequestCircuitBreakerBytes, bigArrays, buildEmptySubAggregations, close, doClose, doPostCollection, doPreCollection, getLeafCollector, getLeafCollector, metadata, name, parent, pointReaderIfAvailable, postCollection, preCollection, preGetSubLeafCollectors, releaseAggregations, scoreMode, searcher, subAggregator, subAggregators, topLevelQuery, toString
Methods inherited from class org.elasticsearch.search.aggregations.Aggregator
bucketComparator, buildEmptyAggregation, buildTopLevel, collectDebugInfo, resolveSortPath, resolveSortPathOnValidAgg
Methods inherited from class org.elasticsearch.search.aggregations.BucketCollector
asCollector
-
Constructor Details
-
MetricsAggregator
protected MetricsAggregator(String name, AggregationContext context, Aggregator parent, Map<String, Object> metadata) throws IOException- Throws:
IOException
-
-
Method Details
-
buildAggregation
Build an aggregation for data that has been collected intoowningBucketOrd
.- Throws:
IOException
-
buildAggregations
Description copied from class:Aggregator
Build the results of this aggregation.- Specified by:
buildAggregations
in classAggregator
- Parameters:
owningBucketOrds
- the ordinals of the buckets that we want to collect from this aggregation- Returns:
- the results for each ordinal, in the same order as the array of ordinals
- Throws:
IOException
-