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, wait
compute, getStat
protected 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 StatsCollector
context
- The context to read documents from.IOException
- if setting next reader failspublic StatsCollector delegate()
public Set<String> getStatsList()
getStatsList
in interface StatsCollector
public MutableValue getValue()
getValue
in interface StatsCollector
public FunctionValues getFunction()
getFunction
in interface StatsCollector
public void collect(int doc)
StatsCollector
collect
in interface StatsCollector
doc
- Document to collect frompublic String valueSourceString()
valueSourceString
in interface StatsCollector
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.