public abstract class QueryHandler
extends java.lang.Object
Constructor and Description |
---|
QueryHandler() |
Modifier and Type | Method and Description |
---|---|
abstract java.util.List |
executeQuery(SearchExpression expression,
java.util.Set selectedSources)
Executes the given search query and returns the results (a List of
QueryResult objects)
|
java.util.List |
executeQuery(java.lang.String[] words,
boolean allWords,
boolean caseSensitive,
java.util.Set selectedSources)
Executes the given search query and returns the results (a List of
QueryResult objects)
|
abstract java.util.Set |
getSupportedSources()
Returns the Set of source identifiers supported by this QueryHandler.
|
abstract void |
stopSearch()
Called to notify the query handler that it should suspend executing the
current query and return an empty result list
|
abstract boolean |
supportsCaseSensitiveSearches()
Returns true if the query handler implementation supports case-sensitive
searches, and false otherwise
|
public java.util.List executeQuery(java.lang.String[] words, boolean allWords, boolean caseSensitive, java.util.Set selectedSources) throws SearchException
words
- the words to search forallWords
- true if all words are required, and false otherwisecaseSensitive
- true if a case sensitive search should be performedselectedSources
- a Set of String objects that identify the sources within
this QueryHandler to consider during this search (null or
an empty set means that all available sources within this
QueryHandler should be searched)SearchException
public abstract java.util.List executeQuery(SearchExpression expression, java.util.Set selectedSources) throws SearchException
expression
- the search query to executeselectedSources
- a Set of String objects that identify the sources within
this QueryHandler to consider during this search (null or
an empty set means that all available sources within this
QueryHandler should be searched)SearchException
public abstract void stopSearch()
public abstract boolean supportsCaseSensitiveSearches()
public abstract java.util.Set getSupportedSources()