public class GetCdfUDF
extends org.apache.hadoop.hive.ql.exec.UDF
| Constructor and Description |
|---|
GetCdfUDF() |
| Modifier and Type | Method and Description |
|---|---|
List<Double> |
evaluate(org.apache.hadoop.io.BytesWritable serializedSketch,
Boolean inclusive,
Float... splitPoints)
Returns a list of ranks (CDF) from a given sketch.
|
List<Double> |
evaluate(org.apache.hadoop.io.BytesWritable serializedSketch,
Float... splitPoints)
Returns a list of ranks (CDF) from a given sketch.
|
public List<Double> evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, Float... splitPoints)
serializedSketch - serialized sketchsplitPoints - list of unique and monotonically increasing valuespublic List<Double> evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, Boolean inclusive, Float... splitPoints)
serializedSketch - serialized sketchinclusive - if true, the interval is inclusive of the left split point and exclusive of the right split pointsplitPoints - list of unique and monotonically increasing valuesCopyright © 2015–2020 The Apache Software Foundation. All rights reserved.