Class StatisticsAggrFunctions.BitHLLFunction
java.lang.Object
org.apache.drill.exec.expr.fn.impl.StatisticsAggrFunctions.BitHLLFunction
- All Implemented Interfaces:
DrillAggFunc
,DrillFunc
- Enclosing class:
- StatisticsAggrFunctions
The log2m parameter defines the accuracy of the counter. The larger the log2m the better the accuracy where:
accuracy = 1.04/sqrt(2^log2m)
log2m - the number of bits to use as the basis for the HLL instance
The parameter accepts integers in the range [0, 30]
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
BitHLLFunction
public BitHLLFunction()
-
-
Method Details
-
setup
public void setup()Description copied from interface:DrillAggFunc
Initialization for the beginning of the aggregation.- Specified by:
setup
in interfaceDrillAggFunc
-
add
public void add()- Specified by:
add
in interfaceDrillAggFunc
-
output
public void output()- Specified by:
output
in interfaceDrillAggFunc
-
reset
public void reset()- Specified by:
reset
in interfaceDrillAggFunc
-