Class DocSetCollector

  • All Implemented Interfaces:
    org.apache.lucene.search.Collector, org.apache.lucene.search.LeafCollector

    public class DocSetCollector
    extends org.apache.lucene.search.SimpleCollector
    • Constructor Detail

      • DocSetCollector

        public DocSetCollector​(int maxDoc)
      • DocSetCollector

        public DocSetCollector​(int smallSetSize,
                               int maxDoc)
    • Method Detail

      • 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
      • size

        public int size()
        The number of documents that have been collected
      • getDocSet

        public DocSet getDocSet()
      • setScorer

        public void setScorer​(org.apache.lucene.search.Scorer scorer)
                       throws IOException
        Specified by:
        setScorer in interface org.apache.lucene.search.LeafCollector
        Overrides:
        setScorer in class org.apache.lucene.search.SimpleCollector
        Throws:
        IOException
      • needsScores

        public boolean needsScores()
      • doSetNextReader

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