public abstract class AbstractMergedStatistic extends Object implements MergedStatistic, Statistic
Statistic.State
Modifier and Type | Field and Description |
---|---|
protected String |
inputName |
protected String |
name |
protected double |
samplePercent |
protected Statistic.State |
state |
Constructor and Description |
---|
AbstractMergedStatistic() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getInput()
Gets the name of the input statistic
|
abstract String |
getName()
Gets the name of the merged statistic
|
abstract void |
initialize(String inputName,
double samplePercent)
Initialize the merged statistic
|
void |
initialize(String name,
String inputName,
double samplePercent) |
abstract void |
merge(MapVector input)
Merges the input statistic (incoming value vector) into the existing
merged statistic
|
abstract void |
setOutput(MapVector output)
Sets the merged statistic value in the output (outgoing value vector)
|
protected String name
protected String inputName
protected double samplePercent
protected Statistic.State state
public abstract void initialize(String inputName, double samplePercent)
MergedStatistic
initialize
in interface MergedStatistic
inputName
- - the input StatisticsAggBatch
statistic for this merged statisticsamplePercent
- - the sample percentage used for extrapolation post merge phasepublic abstract String getName()
MergedStatistic
getName
in interface MergedStatistic
public abstract String getInput()
MergedStatistic
getInput
in interface MergedStatistic
StatisticsAggBatch
statistic for this merged statisticpublic abstract void merge(MapVector input)
MergedStatistic
merge
in interface MergedStatistic
input
- - the input value vector to mergepublic abstract void setOutput(MapVector output)
MergedStatistic
setOutput
in interface MergedStatistic
output
- - the output vector where to populate the statistic valueCopyright © 1970 The Apache Software Foundation. All rights reserved.