Module org.elasticsearch.server
Class SumAggregator
java.lang.Object
org.elasticsearch.search.aggregations.BucketCollector
org.elasticsearch.search.aggregations.Aggregator
org.elasticsearch.search.aggregations.AggregatorBase
org.elasticsearch.search.aggregations.metrics.MetricsAggregator
org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregator
org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregator.SingleValue
org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregator.SingleDoubleValue
org.elasticsearch.search.aggregations.metrics.SumAggregator
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregator
NumericMetricsAggregator.MultiDoubleValue, NumericMetricsAggregator.MultiValue, NumericMetricsAggregator.SingleDoubleValue, NumericMetricsAggregator.SingleValueNested 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
FieldsModifier and TypeFieldDescriptionprotected DoubleArrayprotected final DocValueFormatprotected DoubleArrayFields 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 -
Method Summary
Modifier and TypeMethodDescriptionbuildAggregation(long bucket) Build an aggregation for data that has been collected intoowningBucketOrd.Build an empty aggregation.voiddoClose()Release instance-specific data.protected voidprotected LeafBucketCollectorgetLeafCollector(NumericDoubleValues values, LeafBucketCollector sub) protected LeafBucketCollectorgetLeafCollector(SortedNumericDoubleValues values, LeafBucketCollector sub) protected final voidmaybeGrow(long bucket) doublemetric(long owningBucketOrd) Methods inherited from class org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregator.SingleDoubleValue
getLeafCollector, scoreModeMethods inherited from class org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregator.SingleValue
bucketComparatorMethods inherited from class org.elasticsearch.search.aggregations.metrics.MetricsAggregator
buildAggregationsMethods inherited from class org.elasticsearch.search.aggregations.AggregatorBase
addRequestCircuitBreakerBytes, bigArrays, buildAggregations, buildEmptySubAggregations, checkRealMemoryCB, close, doPostCollection, doPreCollection, getLeafCollector, metadata, name, parent, pointReaderIfAvailable, postCollection, preCollection, preGetSubLeafCollectors, releaseAggregations, searcher, subAggregator, subAggregators, topLevelQuery, toStringMethods inherited from class org.elasticsearch.search.aggregations.Aggregator
buildTopLevel, collectDebugInfo, resolveSortPath, resolveSortPathOnValidAggMethods inherited from class org.elasticsearch.search.aggregations.BucketCollector
asCollector
-
Field Details
-
format
-
sums
-
compensations
-
-
Method Details
-
getLeafCollector
protected LeafBucketCollector getLeafCollector(SortedNumericDoubleValues values, LeafBucketCollector sub) - Specified by:
getLeafCollectorin classNumericMetricsAggregator.SingleDoubleValue
-
getLeafCollector
- Specified by:
getLeafCollectorin classNumericMetricsAggregator.SingleDoubleValue
-
maybeGrow
protected final void maybeGrow(long bucket) -
doGrow
-
metric
public double metric(long owningBucketOrd) - Specified by:
metricin classNumericMetricsAggregator.SingleValue
-
buildAggregation
Description copied from class:MetricsAggregatorBuild an aggregation for data that has been collected intoowningBucketOrd.- Specified by:
buildAggregationin classMetricsAggregator
-
buildEmptyAggregation
Description copied from class:AggregatorBuild an empty aggregation.- Specified by:
buildEmptyAggregationin classAggregator
-
doClose
public void doClose()Description copied from class:AggregatorBaseRelease instance-specific data.- Overrides:
doClosein classAggregatorBase
-