Class UnionSketchUDF


  • public class UnionSketchUDF
    extends org.apache.hadoop.hive.ql.exec.UDF
    Hive union sketch UDF.
    • Constructor Summary

      Constructors 
      Constructor Description
      UnionSketchUDF()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.hadoop.io.BytesWritable evaluate​(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch)
      Union two sketches using default lgK an target HLL type
      org.apache.hadoop.io.BytesWritable evaluate​(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch, int lgK)
      Union two sketches given explicit lgK and using default target HLL type
      org.apache.hadoop.io.BytesWritable evaluate​(org.apache.hadoop.io.BytesWritable firstSketch, org.apache.hadoop.io.BytesWritable secondSketch, int lgK, String type)
      Union two sketches given explicit lgK and target HLL type
      • Methods inherited from class org.apache.hadoop.hive.ql.exec.UDF

        getRequiredFiles, getRequiredJars, getResolver, setResolver
    • Constructor Detail

      • UnionSketchUDF

        public UnionSketchUDF()
    • Method Detail

      • evaluate

        public org.apache.hadoop.io.BytesWritable evaluate​(org.apache.hadoop.io.BytesWritable firstSketch,
                                                           org.apache.hadoop.io.BytesWritable secondSketch,
                                                           int lgK,
                                                           String type)
        Union two sketches given explicit lgK and target HLL type
        Parameters:
        firstSketch - first sketch to be unioned.
        secondSketch - second sketch to be unioned.
        lgK - final output lgK This must be between 4 and 21.
        type - final output HLL type
        Returns:
        resulting sketch of union.
      • evaluate

        public org.apache.hadoop.io.BytesWritable evaluate​(org.apache.hadoop.io.BytesWritable firstSketch,
                                                           org.apache.hadoop.io.BytesWritable secondSketch,
                                                           int lgK)
        Union two sketches given explicit lgK and using default target HLL type
        Parameters:
        firstSketch - first sketch to be unioned.
        secondSketch - second sketch to be unioned.
        lgK - final output lgK This must be between 4 and 21.
        Returns:
        resulting sketch of union.
      • evaluate

        public org.apache.hadoop.io.BytesWritable evaluate​(org.apache.hadoop.io.BytesWritable firstSketch,
                                                           org.apache.hadoop.io.BytesWritable secondSketch)
        Union two sketches using default lgK an target HLL type
        Parameters:
        firstSketch - first sketch to be unioned.
        secondSketch - second sketch to be unioned.
        Returns:
        resulting sketch of union.