Interface MergeStrategy

    • Method Detail

      • inBoth

        int inBoth​(Descriptor target,
                   DescriptorElement left,
                   DescriptorElement right)
        Process when the element appears in both descriptors.
        Parameters:
        target - output descriptor
        left - left element
        right - right element
        Returns:
        count of merged elements
      • inLeft

        int inLeft​(Descriptor target,
                   DescriptorElement left)
        Process when the element appears just in the left descriptor.
        Parameters:
        target - output descriptor
        left - left element
        Returns:
        count of merged elements
      • inRight

        int inRight​(Descriptor target,
                    DescriptorElement right)
        Process when the element appears just in the right descriptor.
        Parameters:
        target - output descriptor
        right - right element
        Returns:
        count of merged elements