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 LuceneAggregators and collects the results of the aggregation.
Since:
10.5
  • Constructor Details

  • Method Details

    • doSetNextReader

      public void doSetNextReader(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Overrides:
      doSetNextReader in class org.apache.lucene.search.SimpleCollector
      Throws:
      IOException
    • collect

      public void collect(int doc) throws IOException
      Specified by:
      collect in interface org.apache.lucene.search.LeafCollector
      Specified by:
      collect in class org.apache.lucene.search.SimpleCollector
      Throws:
      IOException
    • needsScores

      public boolean needsScores()
    • getResults

      public AggregationResponse getResults()