Package org.apache.datasketches.hive.kll
Class GetPmfUDF
- java.lang.Object
-
- org.apache.hadoop.hive.ql.exec.UDF
-
- org.apache.datasketches.hive.kll.GetPmfUDF
-
public class GetPmfUDF extends org.apache.hadoop.hive.ql.exec.UDF
-
-
Constructor Summary
Constructors Constructor Description GetPmfUDF()
-
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 fractions (PMF) from a given sketchList<Double>evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, Float... splitPoints)Returns a list of fractions (PMF) from a given sketch.
-
-
-
Method Detail
-
evaluate
public List<Double> evaluate(org.apache.hadoop.io.BytesWritable serializedSketch, Float... splitPoints)
Returns a list of fractions (PMF) from a given sketch. Equivalent to calling GetPMF(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 fractions (PMF) from a given sketch- 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
-
-