Class DoubleSummarySketchToPercentileUDF


  • public class DoubleSummarySketchToPercentileUDF
    extends org.apache.hadoop.hive.ql.exec.UDF
    • Constructor Detail

      • DoubleSummarySketchToPercentileUDF

        public DoubleSummarySketchToPercentileUDF()
    • 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 binary
        percentile - normalized rank in percent
        Returns:
        percentile value