public class MultiCollectorManager extends java.lang.Object implements CollectorManager<MultiCollectorManager.Collectors,java.lang.Object[]>
CollectorManager implements which wrap a set of CollectorManager
as MultiCollector acts for Collector.| Modifier and Type | Class and Description |
|---|---|
class |
MultiCollectorManager.Collectors |
| Constructor and Description |
|---|
MultiCollectorManager(CollectorManager<? extends Collector,?>... collectorManagers) |
| Modifier and Type | Method and Description |
|---|---|
MultiCollectorManager.Collectors |
newCollector()
Return a new
Collector. |
java.lang.Object[] |
reduce(java.util.Collection<MultiCollectorManager.Collectors> reducableCollectors)
Reduce the results of individual collectors into a meaningful result.
|
@SafeVarargs public MultiCollectorManager(CollectorManager<? extends Collector,?>... collectorManagers)
public MultiCollectorManager.Collectors newCollector() throws java.io.IOException
CollectorManagerCollector. This must return a different instance on
each call.newCollector in interface CollectorManager<MultiCollectorManager.Collectors,java.lang.Object[]>java.io.IOExceptionpublic java.lang.Object[] reduce(java.util.Collection<MultiCollectorManager.Collectors> reducableCollectors) throws java.io.IOException
CollectorManagerTopDocsCollector 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.reduce in interface CollectorManager<MultiCollectorManager.Collectors,java.lang.Object[]>java.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.