Interface CollectorManager<C extends Collector,​T>

    • Method Detail

      • newCollector

        C newCollector()
                throws java.io.IOException
        Return a new Collector. This must return a different instance on each call.
        Throws:
        java.io.IOException
      • reduce

        T reduce​(java.util.Collection<C> collectors)
          throws java.io.IOException
        Reduce the results of individual collectors into a meaningful result. For instance a TopDocsCollector would compute the top docs of each collector and then merge them using TopDocs.merge(int, TopDocs[]). This method must be called after collection is finished on all provided collectors.
        Throws:
        java.io.IOException