Class AbstractMergedStatistic
java.lang.Object
org.apache.drill.exec.physical.impl.statistics.AbstractMergedStatistic
- All Implemented Interfaces:
MergedStatistic,Statistic
- Direct Known Subclasses:
AvgWidthMergedStatistic,CntDupsMergedStatistic,ColTypeMergedStatistic,ColumnMergedStatistic,HLLMergedStatistic,NDVMergedStatistic,NNRowCountMergedStatistic,RowCountMergedStatistic,TDigestMergedStatistic
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.metastore.statistics.Statistic
Statistic.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected doubleprotected Statistic.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringgetInput()Gets the name of the input statisticabstract StringgetName()Gets the name of the merged statisticabstract voidinitialize(String inputName, double samplePercent) Initialize the merged statisticvoidinitialize(String name, String inputName, double samplePercent) abstract voidMerges the input statistic (incoming value vector) into the existing merged statisticabstract voidSets the merged statistic value in the output (outgoing value vector)
-
Field Details
-
name
-
inputName
-
samplePercent
protected double samplePercent -
state
-
-
Constructor Details
-
AbstractMergedStatistic
public AbstractMergedStatistic()
-
-
Method Details
-
initialize
-
initialize
Description copied from interface:MergedStatisticInitialize the merged statistic- Specified by:
initializein interfaceMergedStatistic- Parameters:
inputName- - the inputStatisticsAggBatchstatistic for this merged statisticsamplePercent- - the sample percentage used for extrapolation post merge phase
-
getName
Description copied from interface:MergedStatisticGets the name of the merged statistic- Specified by:
getNamein interfaceMergedStatistic- Returns:
- - name of this merged statistic
-
getInput
Description copied from interface:MergedStatisticGets the name of the input statistic- Specified by:
getInputin interfaceMergedStatistic- Returns:
- - name of the input
StatisticsAggBatchstatistic for this merged statistic
-
merge
Description copied from interface:MergedStatisticMerges the input statistic (incoming value vector) into the existing merged statistic- Specified by:
mergein interfaceMergedStatistic- Parameters:
input- - the input value vector to merge
-
setOutput
Description copied from interface:MergedStatisticSets the merged statistic value in the output (outgoing value vector)- Specified by:
setOutputin interfaceMergedStatistic- Parameters:
output- - the output vector where to populate the statistic value
-