Package com.tibco.patterns.deduplication

## Class Pair

- java.lang.Object
- - com.tibco.patterns.deduplication.Pair

-     public class Pair
      extends java.lang.Object

  Identifies two matching records, with their TIBCO Patterns - Search similarity score.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Pair​(Keyed searchObject, com.netrics.likeit.NetricsSearchResult searchResult)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.String` | `getResultKey()` |
    `Keyed` | `getSearchObject()` |
    `com.netrics.likeit.NetricsSearchResult` | `getSearchResult()` |

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Pair

          public Pair​(Keyed searchObject,
                      com.netrics.likeit.NetricsSearchResult searchResult)

      Parameters:
        `searchObject` - Object that was used to build the Patterns query.
        `searchResult` - Result that was found by the Patterns query.

  - ### Method Detail

    - #### getSearchObject

          public Keyed getSearchObject()

      Returns:
        The object that was used to build the Patterns query.

    - #### getSearchResult

          public com.netrics.likeit.NetricsSearchResult getSearchResult()

      Returns:
        Result that was found by the Patterns query.

    - #### getResultKey

          public java.lang.String getResultKey()

      Returns:
        The "root" key of the search result.

        For a regular (non-join) search, this is just the key of the underlying NetricsRecord. For a join search, this is the key of the top-level (parent) record.