Package org.apache.datasketches.hive.cpc
Class GetEstimateUDF
- java.lang.Object
-
- org.apache.hadoop.hive.ql.exec.UDF
-
- org.apache.datasketches.hive.cpc.GetEstimateUDF
-
public class GetEstimateUDF extends org.apache.hadoop.hive.ql.exec.UDF
-
-
Constructor Summary
Constructors Constructor Description GetEstimateUDF()
-
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 CpcSketch using the default seedDoubleevaluate(org.apache.hadoop.io.BytesWritable serializedSketch, long seed)Get an estimate from a given CpcSketch with explicit seed
-
-
-
Method Detail
-
evaluate
public Double evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, long seed)
Get an estimate from a given CpcSketch with explicit seed- Parameters:
serializedSketch- CpcSketch in a serialized binary formseed- update seed- Returns:
- estimate of unique count
-
evaluate
public Double evaluate(org.apache.hadoop.io.BytesWritable serializedSketch)
Get an estimate from a given CpcSketch using the default seed- Parameters:
serializedSketch- CpcSketch in a serialized binary form- Returns:
- estimate of unique count
-
-