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