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)
MergedStatisticinitialize in interface MergedStatisticinputName - - the input StatisticsAggBatch statistic for this merged statisticsamplePercent - - the sample percentage used for extrapolation post merge phasepublic abstract String getName()
MergedStatisticgetName in interface MergedStatisticpublic abstract String getInput()
MergedStatisticgetInput in interface MergedStatisticStatisticsAggBatch statistic for this merged statisticpublic abstract void merge(MapVector input)
MergedStatisticmerge in interface MergedStatisticinput - - the input value vector to mergepublic abstract void setOutput(MapVector output)
MergedStatisticsetOutput in interface MergedStatisticoutput - - the output vector where to populate the statistic valueCopyright © 2022 The Apache Software Foundation. All rights reserved.