Class GetPmfFromDoublesSketchUDF


  • public class GetPmfFromDoublesSketchUDF
    extends org.apache.hadoop.hive.ql.exec.UDF
    • Constructor Detail

      • GetPmfFromDoublesSketchUDF

        public GetPmfFromDoublesSketchUDF()
    • Method Detail

      • evaluate

        public List<Double> evaluate​(org.apache.hadoop.io.BytesWritable serializedSketch,
                                     Double... splitPoints)
        Returns a list of fractions (PMF) from a given sketch. Equivalent to calling GetPMF(sketch, true, splitPoints...)
        Parameters:
        serializedSketch - serialized sketch
        splitPoints - 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,
                                     Double... splitPoints)
        Returns a list of fractions (PMF) from a given sketch
        Parameters:
        serializedSketch - serialized sketch
        inclusive - if true, the interval is inclusive of the left split point and exclusive of the right split point
        splitPoints - list of unique and monotonically increasing values
        Returns:
        list of fractions from 0 to 1