Class SearchResult

java.lang.Object
com.aquima.interactions.dtree.impl.SearchResult
All Implemented Interfaces:
ISearchResult, Serializable

public class SearchResult extends Object implements ISearchResult
Implementation class for internal use only.
Since:
5.1
Author:
F. van der Meer.
See Also:
  • Constructor Details

  • Method Details

    • getMatchAt

      public ISearchEntry getMatchAt(int pos)
      Description copied from interface: ISearchResult
      Returns the matching entry at the designated position.
      Specified by:
      getMatchAt in interface ISearchResult
      Parameters:
      pos - position ranging from 0 to matchcount.
      Returns:
      a search entry, which is never null
    • getMatchCount

      public int getMatchCount()
      Description copied from interface: ISearchResult
      Returns the number of matches the result contains.
      Specified by:
      getMatchCount in interface ISearchResult
      Returns:
      a number larger then 0.
    • getMatches

      public ISearchEntry[] getMatches()
      Description copied from interface: ISearchResult
      This function returns an ordered array of matching entries. Position 0 (if any) will contain the best match for the search set.
      Specified by:
      getMatches in interface ISearchResult
      Returns:
      an array of ISearchEntry object. It returns never null but can be zero length.
    • getQuery

      public String getQuery()
      Description copied from interface: ISearchResult
      The query passed to the tree engine as search action.
      Specified by:
      getQuery in interface ISearchResult
      Returns:
      String holding the search string.