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
CollectorManager
Collector
. This must return a different instance on
each call.newCollector
in interface CollectorManager<FacetsCollector,FacetsCollector>
java.io.IOException
public FacetsCollector reduce(java.util.Collection<FacetsCollector> collectors) throws java.io.IOException
CollectorManager
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.reduce
in interface CollectorManager<FacetsCollector,FacetsCollector>
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.