Class GetCdfUDF


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

      • GetCdfUDF

        public GetCdfUDF()
    • 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 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,
                                     Float... splitPoints)
        Returns a list of ranks (CDF) from a given sketch. Equivalent to calling GetCDF(sketch, true, splitPoints...)
        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