Class EstimateSketchSimilarityUDF
- java.lang.Object
-
- org.apache.hadoop.hive.ql.exec.UDF
-
- org.apache.datasketches.hive.theta.EstimateSketchSimilarityUDF
-
public class EstimateSketchSimilarityUDF extends org.apache.hadoop.hive.ql.exec.UDFHive estimate sketch similarity UDF.
-
-
Constructor Summary
Constructors Constructor Description EstimateSketchSimilarityUDF()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleevaluate(org.apache.hadoop.io.BytesWritable firstSketchBytes, org.apache.hadoop.io.BytesWritable secondSketchBytes)Main logic called by hive.
-
-
-
Method Detail
-
evaluate
public double evaluate(org.apache.hadoop.io.BytesWritable firstSketchBytes, org.apache.hadoop.io.BytesWritable secondSketchBytes)Main logic called by hive. Computes the jaccard similarity of two sketches of same or different column.- Parameters:
firstSketchBytes- first sketch to be compared.secondSketchBytes- second sketch to be compared.- Returns:
- the estimate of similarity of two sketches
-
-