Match by Obj & int-range

Description

Finds matches using the provided object pairs.

The match is performed on:

  • the object on the right columns of the inputs

  • the integer ranges extracted from the objects in the left column of the inputs.

For each match, the objects on the left columns are returned.

Input

  • A [OBJ,OBJ]: a list of candidates in the first column, and object to match on in the second column

  • B [OBJ,OBJ]: a list of candidates in the first column, and object to match on in the second column

Output

  • RESULT [OBJ,OBJ]: the matched objects from A and B

  • NOTA [OBJ]: the objects from A that did not match with an item from B

  • NOTB [OBJ]: the objects from B that did not match with an item from A

Parameters

  • Comparison: Comparison function to use (overlaps, contains)

  • Exclude self-matches: whether to emit the match if the objects in A and B are the same. Mostly useful when A and B come from the same source