Package org.apache.lucene.misc.search
Class DocValuesStatsCollectorManager<T,S extends DocValuesStats<T>>
java.lang.Object
org.apache.lucene.misc.search.DocValuesStatsCollectorManager<T,S>
- Type Parameters:
T- the type of the DocValues field valueS- the type ofDocValuesStats
- All Implemented Interfaces:
CollectorManager<DocValuesStatsCollector,S>
public class DocValuesStatsCollectorManager<T,S extends DocValuesStats<T>>
extends Object
implements CollectorManager<DocValuesStatsCollector,S>
A
CollectorManager implementation for DocValuesStatsCollector.
Example usage:
IndexSearcher searcher = ...; // your IndexSearcher
DocValuesStatsCollectorManager<Long, DocValuesStats.LongDocValuesStats> manager =
new DocValuesStatsCollectorManager<>(() -> new DocValuesStats.LongDocValuesStats("price"));
DocValuesStats.LongDocValuesStats stats = searcher.search(new MatchAllDocsQuery(), manager);
-
Constructor Summary
ConstructorsConstructorDescriptionDocValuesStatsCollectorManager(Supplier<S> statsSupplier) Creates a new DocValuesStatsCollectorManager. -
Method Summary
-
Constructor Details
-
DocValuesStatsCollectorManager
Creates a new DocValuesStatsCollectorManager.- Parameters:
statsSupplier- a supplier that creates new stats instances for each collector
-
-
Method Details
-
newCollector
- Specified by:
newCollectorin interfaceCollectorManager<T,S extends DocValuesStats<T>> - Throws:
IOException
-
reduce
- Specified by:
reducein interfaceCollectorManager<T,S extends DocValuesStats<T>> - Throws:
IOException
-