public class UnionSketchUDF
extends org.apache.hadoop.hive.ql.exec.UDF
Constructor and Description |
---|
UnionSketchUDF() |
Modifier and Type | Method and Description |
---|---|
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
|
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
|
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
|
public org.apache.hadoop.io.BytesWritable evaluate(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch, int lgK, long seed)
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 seedpublic org.apache.hadoop.io.BytesWritable evaluate(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch, int lgK)
firstSketch
- first sketch to be unioned.secondSketch
- second sketch to be unioned.lgK
- final output lgK
This must be between 4 and 26.public org.apache.hadoop.io.BytesWritable evaluate(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch)
firstSketch
- first sketch to be unioned.secondSketch
- second sketch to be unioned.Copyright © 2015–2019 The Apache Software Foundation. All rights reserved.