Package org.apache.datasketches.hive.kll
Class GetCdfUDF
- java.lang.Object
-
- org.apache.hadoop.hive.ql.exec.UDF
-
- org.apache.datasketches.hive.kll.GetCdfUDF
-
public class GetCdfUDF extends org.apache.hadoop.hive.ql.exec.UDF
-
-
Constructor Summary
Constructors Constructor Description GetCdfUDF()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
evaluate
public List<Double> evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, Float... splitPoints)
Returns a list of ranks (CDF) from a given sketch. Equivalent to calling GetCDF(sketch, true, splitPoints...)- Parameters:
serializedSketch- serialized sketchsplitPoints- list of unique and monotonically increasing values- Returns:
- list of fractions from 0 to 1
-
evaluate
public List<Double> evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, Boolean inclusive, Float... splitPoints)
Returns a list of ranks (CDF) from a given sketch. Equivalent to calling GetCDF(sketch, true, splitPoints...)- Parameters:
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 values- Returns:
- list of fractions from 0 to 1
-
-