Class SearchResult
java.lang.Object
com.aquima.interactions.dtree.impl.SearchResult
- All Implemented Interfaces:
ISearchResult
,Serializable
Implementation class for internal use only.
- Since:
- 5.1
- Author:
- F. van der Meer.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SearchResult
(String symptomText, Set<ISearchEntry> result) -
Method Summary
Modifier and TypeMethodDescriptiongetMatchAt
(int pos) Returns the matching entry at the designated position.int
Returns the number of matches the result contains.This function returns an ordered array of matching entries.getQuery()
The query passed to the tree engine as search action.
-
Constructor Details
-
SearchResult
-
-
Method Details
-
getMatchAt
Description copied from interface:ISearchResult
Returns the matching entry at the designated position.- Specified by:
getMatchAt
in interfaceISearchResult
- 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 interfaceISearchResult
- Returns:
- a number larger then 0.
-
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 interfaceISearchResult
- Returns:
- an array of ISearchEntry object. It returns never null but can be zero length.
-
getQuery
Description copied from interface:ISearchResult
The query passed to the tree engine as search action.- Specified by:
getQuery
in interfaceISearchResult
- Returns:
- String holding the search string.
-