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.SingleValue
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
FieldsModifier and TypeFieldDescriptionprotected DoubleArray
protected final DocValueFormat
protected DoubleArray
Fields inherited from class org.elasticsearch.search.aggregations.AggregatorBase
collectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregators
Fields 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.void
doClose()
Release instance-specific data.protected void
protected LeafBucketCollector
getLeafCollector
(NumericDoubleValues values, LeafBucketCollector sub) protected LeafBucketCollector
getLeafCollector
(SortedNumericDoubleValues values, LeafBucketCollector sub) protected final void
maybeGrow
(long bucket) double
metric
(long owningBucketOrd) Methods inherited from class org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregator.SingleDoubleValue
getLeafCollector, scoreMode
Methods inherited from class org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregator.SingleValue
bucketComparator
Methods inherited from class org.elasticsearch.search.aggregations.metrics.MetricsAggregator
buildAggregations
Methods 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, toString
Methods inherited from class org.elasticsearch.search.aggregations.Aggregator
buildTopLevel, collectDebugInfo, resolveSortPath, resolveSortPathOnValidAgg
Methods 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:
getLeafCollector
in classNumericMetricsAggregator.SingleDoubleValue
-
getLeafCollector
- Specified by:
getLeafCollector
in classNumericMetricsAggregator.SingleDoubleValue
-
maybeGrow
protected final void maybeGrow(long bucket) -
doGrow
-
metric
public double metric(long owningBucketOrd) - Specified by:
metric
in classNumericMetricsAggregator.SingleValue
-
buildAggregation
Description copied from class:MetricsAggregator
Build an aggregation for data that has been collected intoowningBucketOrd
.- Specified by:
buildAggregation
in classMetricsAggregator
-
buildEmptyAggregation
Description copied from class:Aggregator
Build an empty aggregation.- Specified by:
buildEmptyAggregation
in classAggregator
-
doClose
public void doClose()Description copied from class:AggregatorBase
Release instance-specific data.- Overrides:
doClose
in classAggregatorBase
-