Module org.apache.lucene.sandbox
Package org.apache.lucene.sandbox.facet
Class FacetFieldCollectorManager<V extends FacetRecorder>
java.lang.Object
org.apache.lucene.sandbox.facet.FacetFieldCollectorManager<V>
- All Implemented Interfaces:
CollectorManager<FacetFieldCollector,V>
public final class FacetFieldCollectorManager<V extends FacetRecorder>
extends Object
implements CollectorManager<FacetFieldCollector,V>
Collector manager for
FacetFieldCollector. Returns the same extension of FacetRecorder that was used to collect results.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFacetFieldCollectorManager(FacetCutter facetCutter, V facetRecorder) Create collector for a cutter + recorder pair -
Method Summary
Modifier and TypeMethodDescriptionReturn a newCollector.reduce(Collection<FacetFieldCollector> collectors) Reduce the results of individual collectors into a meaningful result.
-
Field Details
-
facetCutter
-
facetRecorder
-
-
Constructor Details
-
FacetFieldCollectorManager
Create collector for a cutter + recorder pair
-
-
Method Details
-
newCollector
Description copied from interface:CollectorManagerReturn a newCollector. This must return a different instance on each call.- Specified by:
newCollectorin interfaceCollectorManager<FacetFieldCollector,V extends FacetRecorder> - Throws:
IOException
-
reduce
Description copied from interface:CollectorManagerReduce the results of individual collectors into a meaningful result. For instance aTopDocsCollectorwould compute thetop docsof each collector and then merge them usingTopDocs.merge(int, TopDocs[]). This method must be called after collection is finished on all provided collectors.- Specified by:
reducein interfaceCollectorManager<FacetFieldCollector,V extends FacetRecorder> - Throws:
IOException
-