Class 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)  
    • 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.