public class GetRankUDF
extends org.apache.hadoop.hive.ql.exec.UDF
| Constructor and Description |
|---|
GetRankUDF() |
| Modifier and Type | Method and Description |
|---|---|
Double |
evaluate(org.apache.hadoop.io.BytesWritable serializedSketch,
Boolean inclusive,
float value)
Returns a normalized rank of a given value from a given sketch
|
Double |
evaluate(org.apache.hadoop.io.BytesWritable serializedSketch,
float value)
Returns a normalized rank of a given value from a given sketch
|
public Double evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, float value)
serializedSketch - serialized sketchvalue - the given valuepublic Double evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, Boolean inclusive, float value)
serializedSketch - serialized sketchinclusive - if true the weight of the given item is included into the rank.
Otherwise the rank equals the sum of the weights of all items that are less than the given itemvalue - the given valueCopyright © 2015–2020 The Apache Software Foundation. All rights reserved.