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
Constructors -
Method Summary
-
Constructor Details
-
BitHLLFunction
public BitHLLFunction()
-
-
Method Details
-
setup
public void setup()Description copied from interface:DrillAggFuncInitialization for the beginning of the aggregation.- Specified by:
setupin interfaceDrillAggFunc
-
add
public void add()- Specified by:
addin interfaceDrillAggFunc
-
output
public void output()- Specified by:
outputin interfaceDrillAggFunc
-
reset
public void reset()- Specified by:
resetin interfaceDrillAggFunc
-