public class SketchToEstimateAndErrorBoundsUDF
extends org.apache.hadoop.hive.ql.exec.UDF
Constructor and Description |
---|
SketchToEstimateAndErrorBoundsUDF() |
Modifier and Type | Method and Description |
---|---|
List<Double> |
evaluate(org.apache.hadoop.io.BytesWritable serializedSketch)
Get an estimate and error bounds from a given HllSketch with default kappa
|
List<Double> |
evaluate(org.apache.hadoop.io.BytesWritable serializedSketch,
int kappa)
Get an estimate and error bounds from a given HllSketch with explicit kappa
|
public List<Double> evaluate(org.apache.hadoop.io.BytesWritable serializedSketch)
serializedSketch
- HllSketch in a serialized binary formpublic List<Double> evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, int kappa)
serializedSketch
- HllSketch in a serialized binary formkappa
- given number of standard deviations from the mean: 1, 2 or 3Copyright © 2015–2019 The Apache Software Foundation. All rights reserved.