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
Modifier and TypeFieldDescriptionprotected String
protected String
protected double
protected Statistic.State
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
getInput()
Gets the name of the input statisticabstract String
getName()
Gets the name of the merged statisticabstract void
initialize
(String inputName, double samplePercent) Initialize the merged statisticvoid
initialize
(String name, String inputName, double samplePercent) abstract void
Merges the input statistic (incoming value vector) into the existing merged statisticabstract void
Sets 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:MergedStatistic
Initialize the merged statistic- Specified by:
initialize
in interfaceMergedStatistic
- Parameters:
inputName
- - the inputStatisticsAggBatch
statistic for this merged statisticsamplePercent
- - the sample percentage used for extrapolation post merge phase
-
getName
Description copied from interface:MergedStatistic
Gets the name of the merged statistic- Specified by:
getName
in interfaceMergedStatistic
- Returns:
- - name of this merged statistic
-
getInput
Description copied from interface:MergedStatistic
Gets the name of the input statistic- Specified by:
getInput
in interfaceMergedStatistic
- Returns:
- - name of the input
StatisticsAggBatch
statistic for this merged statistic
-
merge
Description copied from interface:MergedStatistic
Merges the input statistic (incoming value vector) into the existing merged statistic- Specified by:
merge
in interfaceMergedStatistic
- Parameters:
input
- - the input value vector to merge
-
setOutput
Description copied from interface:MergedStatistic
Sets the merged statistic value in the output (outgoing value vector)- Specified by:
setOutput
in interfaceMergedStatistic
- Parameters:
output
- - the output vector where to populate the statistic value
-