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 TypeMethodDescriptionvoidaggregate(int docId) Aggregate the value for the given document.Get the result of the aggregation.voidloadDocValues(org.apache.lucene.index.LeafReader reader) Load the doc values for the field that this aggregator is aggregating on.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.search.lucene.aggregation.LuceneAggregator
loadDocValues
-
Constructor Details
-
SumLuceneAggregator
-
-
Method Details
-
loadDocValues
Description copied from interface:LuceneAggregatorLoad the doc values for the field that this aggregator is aggregating on.- Specified by:
loadDocValuesin interfaceLuceneAggregator<SumAggregationResult>- Parameters:
reader- theLeafReaderfor the current segment- Throws:
IOException- if an error occurs while loading the doc values
-
aggregate
Description copied from interface:LuceneAggregatorAggregate the value for the given document.- Specified by:
aggregatein interfaceLuceneAggregator<SumAggregationResult>- Parameters:
docId- the document ID to aggregate- Throws:
IOException- if an error occurs while aggregating the value
-
getResult
Description copied from interface:LuceneAggregatorGet the result of the aggregation.- Specified by:
getResultin interfaceLuceneAggregator<SumAggregationResult>- Returns:
- the result of the aggregation
-