Class TotalHitCountCollectorManager

java.lang.Object
org.opensearch.search.query.TotalHitCountCollectorManager
All Implemented Interfaces:
org.apache.lucene.search.CollectorManager<org.apache.lucene.search.TotalHitCountCollector,ReduceableSearchResult>, EarlyTerminatingListener

public class TotalHitCountCollectorManager extends Object implements org.apache.lucene.search.CollectorManager<org.apache.lucene.search.TotalHitCountCollector,ReduceableSearchResult>, EarlyTerminatingListener
CollectorManager for the TotalHitCountCollector
Opensearch.internal:
  • Constructor Details

    • TotalHitCountCollectorManager

      public TotalHitCountCollectorManager(org.apache.lucene.search.Sort sort)
  • Method Details

    • onEarlyTermination

      public void onEarlyTermination(int maxCountHits, boolean forcedTermination)
      Description copied from interface: EarlyTerminatingListener
      Early termination event notification
      Specified by:
      onEarlyTermination in interface EarlyTerminatingListener
      Parameters:
      maxCountHits - desired maximum number of hits
      forcedTermination - :true" if forced termination has been requested, "false" otherwise
    • newCollector

      public org.apache.lucene.search.TotalHitCountCollector newCollector() throws IOException
      Specified by:
      newCollector in interface org.apache.lucene.search.CollectorManager<org.apache.lucene.search.TotalHitCountCollector,ReduceableSearchResult>
      Throws:
      IOException
    • reduce

      public ReduceableSearchResult reduce(Collection<org.apache.lucene.search.TotalHitCountCollector> collectors) throws IOException
      Specified by:
      reduce in interface org.apache.lucene.search.CollectorManager<org.apache.lucene.search.TotalHitCountCollector,ReduceableSearchResult>
      Throws:
      IOException