Class SketchMerger


  • public class SketchMerger
    extends java.lang.Object
    This class is responsible for merging any combinations of two Sketch instances.
    • Constructor Summary

      Constructors 
      Constructor Description
      SketchMerger()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Sketch<?> merge​(Sketch<?> left, Sketch<?> right)
      Merges one of the two sketches into the other.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SketchMerger

        public SketchMerger()
    • Method Detail

      • merge

        public Sketch<?> merge​(Sketch<?> left,
                               Sketch<?> right)
        Merges one of the two sketches into the other. The merge operation is performed in-place is possible.
        Parameters:
        left - Either a NormalSketch or SparseSketch.
        right - Either a NormalSketch or SparseSketch.
        Returns:
        The merged sketch. Is either first parameter, the other parameter or a new instance.