public class GetQuantilesFromDoublesSketchUDF
extends org.apache.hadoop.hive.ql.exec.UDF
| Constructor and Description |
|---|
GetQuantilesFromDoublesSketchUDF() |
| Modifier and Type | Method and Description |
|---|---|
List<Double> |
evaluate(org.apache.hadoop.io.BytesWritable serializedSketch,
Boolean inclusive,
Double... fractions)
Returns a list of quantile values from a given sketch
|
List<Double> |
evaluate(org.apache.hadoop.io.BytesWritable serializedSketch,
Boolean inclusive,
int number)
Returns a list of quantile values from a given sketch
|
List<Double> |
evaluate(org.apache.hadoop.io.BytesWritable serializedSketch,
Double... fractions)
Returns a list of quantile values from a given sketch.
|
List<Double> |
evaluate(org.apache.hadoop.io.BytesWritable serializedSketch,
int number)
Returns a list of quantile values from a given sketch.
|
public List<Double> evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, Double... fractions)
serializedSketch - serialized sketchfractions - list of values from 0 to 1 inclusivepublic List<Double> evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, Boolean inclusive, Double... fractions)
serializedSketch - serialized sketchinclusive - if true, the given ranks are considered inclusive (include weight of an item)fractions - list of values from 0 to 1 inclusivepublic List<Double> evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, int number)
serializedSketch - serialized sketchnumber - of evenly spaced fractionspublic List<Double> evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, Boolean inclusive, int number)
serializedSketch - serialized sketchinclusive - if true, the given ranks are considered inclusive (include weight of an item)number - of evenly spaced fractionsCopyright © 2015–2020 The Apache Software Foundation. All rights reserved.