Class LuceneAggregationCollector
java.lang.Object
org.apache.lucene.search.SimpleCollector
com.atlassian.jira.search.lucene.aggregation.LuceneAggregationCollector
- All Implemented Interfaces:
org.apache.lucene.search.Collector
,org.apache.lucene.search.LeafCollector
public class LuceneAggregationCollector
extends org.apache.lucene.search.SimpleCollector
A simple collector that wraps a set of
LuceneAggregator
s and collects the results of the aggregation.- Since:
- 10.5
-
Constructor Summary
ConstructorsConstructorDescriptionLuceneAggregationCollector
(Map<String, ? extends LuceneAggregator<?>> aggregators) -
Method Summary
Modifier and TypeMethodDescriptionvoid
collect
(int doc) void
doSetNextReader
(org.apache.lucene.index.LeafReaderContext context) boolean
Methods inherited from class org.apache.lucene.search.SimpleCollector
getLeafCollector, setScorer
-
Constructor Details
-
LuceneAggregationCollector
-
-
Method Details
-
doSetNextReader
- Overrides:
doSetNextReader
in classorg.apache.lucene.search.SimpleCollector
- Throws:
IOException
-
collect
- Specified by:
collect
in interfaceorg.apache.lucene.search.LeafCollector
- Specified by:
collect
in classorg.apache.lucene.search.SimpleCollector
- Throws:
IOException
-
needsScores
public boolean needsScores() -
getResults
-