Class HLLMergedStatistic
java.lang.Object
org.apache.drill.exec.physical.impl.statistics.AbstractMergedStatistic
org.apache.drill.exec.physical.impl.statistics.HLLMergedStatistic
- All Implemented Interfaces:
MergedStatistic
,Statistic
-
Nested Class Summary
Nested 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(OptionManager optionsManager) getInput()
Gets the name of the input statisticgetName()
Gets the name of the merged statisticcom.clearspring.analytics.stream.cardinality.HyperLogLog
void
initialize
(String inputName, double samplePercent) Initialize the merged statisticvoid
Merges the input statistic (incoming value vector) into the existing merged statisticvoid
Sets 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
-
HLLMergedStatistic
public HLLMergedStatistic()
-
-
Method Details
-
initialize
Description copied from interface:MergedStatistic
Initialize the merged statistic- Specified by:
initialize
in interfaceMergedStatistic
- Specified by:
initialize
in classAbstractMergedStatistic
- 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
- Specified by:
getName
in classAbstractMergedStatistic
- Returns:
- - name of this merged statistic
-
getInput
Description copied from interface:MergedStatistic
Gets the name of the input statistic- Specified by:
getInput
in interfaceMergedStatistic
- Specified by:
getInput
in classAbstractMergedStatistic
- 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
- Specified by:
merge
in classAbstractMergedStatistic
- Parameters:
input
- - the input value vector to merge
-
getStat
-
setOutput
Description copied from interface:MergedStatistic
Sets the merged statistic value in the output (outgoing value vector)- Specified by:
setOutput
in interfaceMergedStatistic
- Specified by:
setOutput
in classAbstractMergedStatistic
- Parameters:
output
- - the output vector where to populate the statistic value
-
configure
-