Class EarlyTerminatingCollector

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

    public class EarlyTerminatingCollector
    extends org.apache.lucene.search.FilterCollector
    A Collector that early terminates collection after maxCountHits docs have been collected.
    • Field Summary

      • Fields inherited from class org.apache.lucene.search.FilterCollector

        in
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.lucene.search.LeafCollector getLeafCollector​(org.apache.lucene.index.LeafReaderContext context)  
      • Methods inherited from class org.apache.lucene.search.FilterCollector

        needsScores, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getLeafCollector

        public org.apache.lucene.search.LeafCollector getLeafCollector​(org.apache.lucene.index.LeafReaderContext context)
                                                                throws java.io.IOException
        Specified by:
        getLeafCollector in interface org.apache.lucene.search.Collector
        Overrides:
        getLeafCollector in class org.apache.lucene.search.FilterCollector
        Throws:
        java.io.IOException