public class UniqueStatsCollector extends AbstractDelegatingStatsCollector
UniqueValueCounter computes the number of unique values.delegate, statsList| Constructor and Description |
|---|
UniqueStatsCollector(StatsCollector delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc)
Collect values from the value source and add to statistics.
|
void |
compute()
After all documents have been collected, this method should be
called to finalize the calculations of each statistic.
|
Comparable |
getStat(String stat)
Return the value of the given statistic.
|
delegate, getFunction, getStatsList, getValue, setNextReader, valueSourceStringpublic UniqueStatsCollector(StatsCollector delegate)
public void collect(int doc)
StatsCollectorcollect in interface StatsCollectorcollect in class AbstractDelegatingStatsCollectordoc - Document to collect frompublic Comparable getStat(String stat)
StatsCollectorstat - the statpublic void compute()
StatsCollectorCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.