public abstract class AbstractDelegatingStatsCollector extends Object implements StatsCollector
AbstractDelegationStatsCollector objects wrap other StatsCollectors.
While they compute their own statistics they pass along all inputs and requests
to the delegates as well.| Modifier and Type | Field and Description |
|---|---|
protected StatsCollector |
delegate |
protected Set<String> |
statsList |
| Constructor and Description |
|---|
AbstractDelegatingStatsCollector(StatsCollector delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc)
Collect values from the value source and add to statistics.
|
StatsCollector |
delegate() |
FunctionValues |
getFunction() |
Set<String> |
getStatsList() |
MutableValue |
getValue() |
void |
setNextReader(LeafReaderContext context) |
String |
valueSourceString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, getStatprotected final StatsCollector delegate
public AbstractDelegatingStatsCollector(StatsCollector delegate)
delegate - The delegate computing statistics on the same set of values.public void setNextReader(LeafReaderContext context) throws IOException
setNextReader in interface StatsCollectorcontext - The context to read documents from.IOException - if setting next reader failspublic StatsCollector delegate()
public Set<String> getStatsList()
getStatsList in interface StatsCollectorpublic MutableValue getValue()
getValue in interface StatsCollectorpublic FunctionValues getFunction()
getFunction in interface StatsCollectorpublic void collect(int doc)
StatsCollectorcollect in interface StatsCollectordoc - Document to collect frompublic String valueSourceString()
valueSourceString in interface StatsCollectorCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.