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)
Main logic called by hive if sketchSize is not passed in.
|
org.apache.hadoop.io.BytesWritable |
evaluate(org.apache.hadoop.io.BytesWritable firstSketch,
org.apache.hadoop.io.BytesWritable secondSketch,
int sketchSize)
Main logic called by hive if sketchSize is also passed in.
|
org.apache.hadoop.io.BytesWritable |
evaluate(org.apache.hadoop.io.BytesWritable firstSketch,
org.apache.hadoop.io.BytesWritable secondSketch,
int sketchSize,
long seed)
Main logic called by hive if sketchSize is also passed in.
|
public org.apache.hadoop.io.BytesWritable evaluate(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch, int sketchSize, long seed)
firstSketch
- first sketch to be unioned.secondSketch
- second sketch to be unioned.sketchSize
- final output unioned sketch size.
This must be a power of 2 and larger than 16.seed
- using the seed is not recommended unless you really know why you need it.public org.apache.hadoop.io.BytesWritable evaluate(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch, int sketchSize)
firstSketch
- first sketch to be unioned.secondSketch
- second sketch to be unioned.sketchSize
- final output unioned sketch size.
This must be a power of 2 and larger than 16.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.