Interface CollectorManager<C extends Collector,T>

All Known Implementing Classes:
MultiCollectorManager, TotalHitCountCollectorManager

public interface CollectorManager<C extends Collector,T>
A manager of collectors. This class is useful to parallelize execution of search requests and has two main methods:
  • newCollector() which must return a NEW collector which will be used to collect a certain set of leaves.
  • reduce(Collection) which will be used to reduce the results of individual collections into a meaningful result. This method is only called after all leaves have been fully collected.
See Also:
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return a new Collector.
    reduce(Collection<C> collectors)
    Reduce the results of individual collectors into a meaningful result.