Package org.apache.datasketches.hive.cpc
Class UnionSketchUDF
- java.lang.Object
-
- org.apache.hadoop.hive.ql.exec.UDF
-
- org.apache.datasketches.hive.cpc.UnionSketchUDF
-
public class UnionSketchUDF extends org.apache.hadoop.hive.ql.exec.UDFHive union sketch UDF.
-
-
Constructor Summary
Constructors Constructor Description UnionSketchUDF()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hadoop.io.BytesWritableevaluate(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch)Union two sketches using default lgK an seedorg.apache.hadoop.io.BytesWritableevaluate(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch, int lgK)Union two sketches given explicit lgK and using default seedorg.apache.hadoop.io.BytesWritableevaluate(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch, int lgK, long seed)Union two sketches given explicit lgK and seed
-
-
-
Method Detail
-
evaluate
public org.apache.hadoop.io.BytesWritable evaluate(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch, int lgK, long seed)Union two sketches given explicit lgK and seed- Parameters:
firstSketch- first sketch to be unioned.secondSketch- second sketch to be unioned.lgK- final output lgK This must be between 4 and 26.seed- update seed- Returns:
- resulting sketch of union.
-
evaluate
public org.apache.hadoop.io.BytesWritable evaluate(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch, int lgK)Union two sketches given explicit lgK and using default seed- Parameters:
firstSketch- first sketch to be unioned.secondSketch- second sketch to be unioned.lgK- final output lgK This must be between 4 and 26.- Returns:
- resulting sketch of union.
-
evaluate
public org.apache.hadoop.io.BytesWritable evaluate(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch)Union two sketches using default lgK an seed- Parameters:
firstSketch- first sketch to be unioned.secondSketch- second sketch to be unioned.- Returns:
- resulting sketch of union.
-
-