MultiCollectorManager

A composite CollectorManager which wraps a set of CollectorManager instances, akin to how MultiCollector wraps Collector instances.

Constructors

Link copied to clipboard
constructor(vararg collectorManagers: CollectorManager<out Collector, *>?)

Functions

Link copied to clipboard
open override fun newCollector(): Collector

Return a new Collector. This must return a different instance on each call.

Link copied to clipboard
open override fun reduce(collectors: MutableCollection<Collector>): Array<Any?>

Reduce the results of individual collectors into a meaningful result. For instance a [ ] would compute the top docs of each collector and then merge them using TopDocs.merge. This method must be called after collection is finished on all provided collectors.