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 target HLL type
|
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 target HLL type
|
org.apache.hadoop.io.BytesWritable |
evaluate(org.apache.hadoop.io.BytesWritable firstSketch,
org.apache.hadoop.io.BytesWritable secondSketch,
int lgK,
String type)
Union two sketches given explicit lgK and target HLL type
|
public org.apache.hadoop.io.BytesWritable evaluate(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch, int lgK, String type)
firstSketch
- first sketch to be unioned.secondSketch
- second sketch to be unioned.lgK
- final output lgK
This must be between 4 and 21.type
- final output HLL typepublic 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 21.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.