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 value
S - the type of DocValuesStats
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);