Class GetEstimateUDF


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

      • GetEstimateUDF

        public GetEstimateUDF()
    • Method Detail

      • evaluate

        public Double evaluate​(org.apache.hadoop.io.BytesWritable serializedSketch,
                               long seed)
        Get an estimate from a given CpcSketch with explicit seed
        Parameters:
        serializedSketch - CpcSketch in a serialized binary form
        seed - update seed
        Returns:
        estimate of unique count
      • evaluate

        public Double evaluate​(org.apache.hadoop.io.BytesWritable serializedSketch)
        Get an estimate from a given CpcSketch using the default seed
        Parameters:
        serializedSketch - CpcSketch in a serialized binary form
        Returns:
        estimate of unique count