Class DoubleSummarySketchToPercentileUDF
- java.lang.Object
-
- org.apache.hadoop.hive.ql.exec.UDF
-
- org.apache.datasketches.hive.tuple.DoubleSummarySketchToPercentileUDF
-
public class DoubleSummarySketchToPercentileUDF extends org.apache.hadoop.hive.ql.exec.UDF
-
-
Constructor Summary
Constructors Constructor Description DoubleSummarySketchToPercentileUDF()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Doubleevaluate(org.apache.hadoop.io.BytesWritable serializedSketch, double percentile)Get percentile from a given Sketch<DoubleSummary>
-
-
-
Method Detail
-
evaluate
public Double evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, double percentile)
Get percentile from a given Sketch<DoubleSummary>- Parameters:
serializedSketch- DoubleSummarySketch in as serialized binarypercentile- normalized rank in percent- Returns:
- percentile value
-
-