Class SumLuceneAggregator
java.lang.Object
com.atlassian.jira.search.lucene.aggregation.metric.SumLuceneAggregator
- All Implemented Interfaces:
LuceneAggregator<SumAggregationResult>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.search.lucene.aggregation.LuceneAggregator
LuceneAggregator.SubAggregatorFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
aggregate
(int docId) Aggregate the value for the given document.Get the result of the aggregation.void
loadDocValues
(org.apache.lucene.index.LeafReader reader) Load the doc values for the field that this aggregator is aggregating on.
-
Constructor Details
-
SumLuceneAggregator
-
-
Method Details
-
loadDocValues
Description copied from interface:LuceneAggregator
Load the doc values for the field that this aggregator is aggregating on.- Specified by:
loadDocValues
in interfaceLuceneAggregator<SumAggregationResult>
- Parameters:
reader
- theLeafReader
for the current segment- Throws:
IOException
- if an error occurs while loading the doc values
-
aggregate
Description copied from interface:LuceneAggregator
Aggregate the value for the given document.- Specified by:
aggregate
in interfaceLuceneAggregator<SumAggregationResult>
- Parameters:
docId
- the document ID to aggregate- Throws:
IOException
- if an error occurs while aggregating the value
-
getResult
Description copied from interface:LuceneAggregator
Get the result of the aggregation.- Specified by:
getResult
in interfaceLuceneAggregator<SumAggregationResult>
- Returns:
- the result of the aggregation
-