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, valueSourceString
public UniqueStatsCollector(StatsCollector delegate)
public void collect(int doc)
StatsCollector
collect
in interface StatsCollector
collect
in class AbstractDelegatingStatsCollector
doc
- Document to collect frompublic Comparable getStat(String stat)
StatsCollector
stat
- the statpublic void compute()
StatsCollector
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.