Class EstimateSketchUDF
- java.lang.Object
-
- org.apache.hadoop.hive.ql.exec.UDF
-
- org.apache.datasketches.hive.theta.EstimateSketchUDF
-
public class EstimateSketchUDF extends org.apache.hadoop.hive.ql.exec.UDFHive estimate sketch udf. V4
-
-
Constructor Summary
Constructors Constructor Description EstimateSketchUDF()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Doubleevaluate(org.apache.hadoop.io.BytesWritable binarySketch)Returns the estimate unique count of sketch.Doubleevaluate(org.apache.hadoop.io.BytesWritable binarySketch, long seed)Returns the estimate unique count of sketch.
-
-
-
Method Detail
-
evaluate
public Double evaluate(org.apache.hadoop.io.BytesWritable binarySketch)
Returns the estimate unique count of sketch.- Parameters:
binarySketch- sketch to be estimated passed in as bytes writable.- Returns:
- the estimate of unique count from given sketch.
-
evaluate
public Double evaluate(org.apache.hadoop.io.BytesWritable binarySketch, long seed)
Returns the estimate unique count of sketch.- Parameters:
binarySketch- sketch to be estimated passed in as bytes writable.seed- value used to build the sketch if different from the default- Returns:
- the estimate of unique count from given sketch.
-
-