public class FacetsCollectorManager extends java.lang.Object implements CollectorManager<FacetsCollector,FacetsCollector>
CollectorManager implementation which produces FacetsCollector and produces a merged FacetsCollector.
This is used for concurrent FacetsCollection.| Constructor and Description |
|---|
FacetsCollectorManager()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FacetsCollector |
newCollector()
Return a new
Collector. |
FacetsCollector |
reduce(java.util.Collection<FacetsCollector> collectors)
Reduce the results of individual collectors into a meaningful result.
|
public FacetsCollector newCollector() throws java.io.IOException
CollectorManagerCollector. This must return a different instance on
each call.newCollector in interface CollectorManager<FacetsCollector,FacetsCollector>java.io.IOExceptionpublic FacetsCollector reduce(java.util.Collection<FacetsCollector> collectors) 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<FacetsCollector,FacetsCollector>java.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.