public class DoubleSummarySketchToPercentileUDF
extends org.apache.hadoop.hive.ql.exec.UDF
Constructor and Description |
---|
DoubleSummarySketchToPercentileUDF() |
Modifier and Type | Method and Description |
---|---|
Double |
evaluate(org.apache.hadoop.io.BytesWritable serializedSketch,
double percentile)
Get percentile from a given Sketch<DoubleSummary>
|
public Double evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, double percentile)
serializedSketch
- DoubleSummarySketch in as serialized binarypercentile
- normalized rank in percentCopyright © 2015–2019 The Apache Software Foundation. All rights reserved.