Class EstimateSketchUDF


  • public class EstimateSketchUDF
    extends org.apache.hadoop.hive.ql.exec.UDF
    Hive estimate sketch udf. V4
    • Constructor Detail

      • EstimateSketchUDF

        public EstimateSketchUDF()
    • Method Detail

      • evaluate

        public Double evaluate​(org.apache.hadoop.io.BytesWritable binarySketch)
        Returns the estimate unique count of sketch.
        Parameters:
        binarySketch - sketch to be estimated passed in as bytes writable.
        Returns:
        the estimate of unique count from given sketch.
      • evaluate

        public Double evaluate​(org.apache.hadoop.io.BytesWritable binarySketch,
                               long seed)
        Returns the estimate unique count of sketch.
        Parameters:
        binarySketch - sketch to be estimated passed in as bytes writable.
        seed - value used to build the sketch if different from the default
        Returns:
        the estimate of unique count from given sketch.