Class NDVMergedStatistic
java.lang.Object
org.apache.drill.exec.physical.impl.statistics.AbstractMergedStatistic
org.apache.drill.exec.physical.impl.statistics.NDVMergedStatistic
- All Implemented Interfaces:
MergedStatistic,Statistic
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.drill.metastore.statistics.Statistic
Statistic.State -
Field Summary
Fields inherited from class org.apache.drill.exec.physical.impl.statistics.AbstractMergedStatistic
inputName, name, samplePercent, state -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(NDVMergedStatistic.NDVConfiguration ndvConfig) getInput()Gets the name of the input statisticgetName()Gets the name of the merged statisticlongvoidinitialize(String inputName, double samplePercent) Initialize the merged statisticvoidMerges the input statistic (incoming value vector) into the existing merged statisticvoidSets the merged statistic value in the output (outgoing value vector)Methods inherited from class org.apache.drill.exec.physical.impl.statistics.AbstractMergedStatistic
initialize
-
Constructor Details
-
NDVMergedStatistic
public NDVMergedStatistic()
-
-
Method Details
-
initialize
Description copied from interface:MergedStatisticInitialize the merged statistic- Specified by:
initializein interfaceMergedStatistic- Specified by:
initializein classAbstractMergedStatistic- 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- Specified by:
getNamein classAbstractMergedStatistic- Returns:
- - name of this merged statistic
-
getInput
Description copied from interface:MergedStatisticGets the name of the input statistic- Specified by:
getInputin interfaceMergedStatistic- Specified by:
getInputin classAbstractMergedStatistic- 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- Specified by:
mergein classAbstractMergedStatistic- Parameters:
input- - the input value vector to merge
-
getStat
-
setOutput
Description copied from interface:MergedStatisticSets the merged statistic value in the output (outgoing value vector)- Specified by:
setOutputin interfaceMergedStatistic- Specified by:
setOutputin classAbstractMergedStatistic- Parameters:
output- - the output vector where to populate the statistic value
-
configure
-