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