public interface Aggregator
Aggregator
is an abstraction for transforming the values of a
single statistic in a collection of StatisticsRecords
.
Example of aggregators include SourceAveragedAggregator
and
NormalizedGeometricVarianceAggregator
.
Aggregators can be stateful; that is, they can accumulate values as the
Aggregator.process(StatisticsRecord)
method is called with different records. The user of
the aggregator should explicitly invoke the Aggregator.reset()
method after the
Aggregator.getValue()
method is invoked.
StatisticsRecord
Modifier and Type | Field and Description |
---|---|
static double |
INVALID_VALUE
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInputStatisticName()
Get the name of the statistic which should be aggregated.
|
double |
getValue()
Get the current value of the aggregated statistic.
|
void |
process(StatisticsRecord record)
Process the statistic in the given record.
|
void |
reset()
Reset any state that this aggregator has.
|
void |
setInputStatisticName(java.lang.String name)
Set the name of the statistic which should be aggregated.
|
java.lang.String getInputStatisticName()
void setInputStatisticName(java.lang.String name)
name
- the name of the statistic which should be aggregatedvoid process(StatisticsRecord record)
record
- the record to processdouble getValue()
void reset()
Copyright © 2014 TIBCO Software, Inc. All Rights Reserved.