Package org.apache.datasketches.hive.hll
Class SketchToEstimateUDF
- java.lang.Object
-
- org.apache.hadoop.hive.ql.exec.UDF
-
- org.apache.datasketches.hive.hll.SketchToEstimateUDF
-
public class SketchToEstimateUDF extends org.apache.hadoop.hive.ql.exec.UDF
-
-
Constructor Summary
Constructors Constructor Description SketchToEstimateUDF()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Doubleevaluate(org.apache.hadoop.io.BytesWritable serializedSketch)Get an estimate from a given HllSketch
-
-
-
Method Detail
-
evaluate
public Double evaluate(org.apache.hadoop.io.BytesWritable serializedSketch)
Get an estimate from a given HllSketch- Parameters:
serializedSketch- HllSketch in a serialized binary form- Returns:
- estimate of unique count
-
-