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.SubAggCollectionModeNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.BucketCollector
BucketCollector.BucketCollectorWrapper -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.AggregatorBase
collectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregatorsFields inherited from class org.elasticsearch.search.aggregations.BucketCollector
NO_OP_BUCKET_COLLECTOR, NO_OP_COLLECTOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMetricsAggregator(String name, AggregationContext context, Aggregator parent, Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescriptionabstract InternalAggregationbuildAggregation(long owningBucketOrd) Build an aggregation for data that has been collected intoowningBucketOrd.final InternalAggregation[]buildAggregations(LongArray owningBucketOrds) Build the results of this aggregation.Methods inherited from class org.elasticsearch.search.aggregations.AggregatorBase
addRequestCircuitBreakerBytes, bigArrays, buildAggregations, buildEmptySubAggregations, checkRealMemoryCB, close, doClose, doPostCollection, doPreCollection, getLeafCollector, getLeafCollector, metadata, name, parent, pointReaderIfAvailable, postCollection, preCollection, preGetSubLeafCollectors, releaseAggregations, scoreMode, searcher, subAggregator, subAggregators, topLevelQuery, toStringMethods inherited from class org.elasticsearch.search.aggregations.Aggregator
bucketComparator, buildEmptyAggregation, buildTopLevel, collectDebugInfo, resolveSortPath, resolveSortPathOnValidAggMethods 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:AggregatorBuild the results of this aggregation.- Specified by:
buildAggregationsin 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
-