|
Oracle Fusion Middleware Java API Reference for Oracle Help 12c (12.1.2) E48720-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.help.common.search.QueryHandler
public abstract class QueryHandler
QueryHandler is an abstract class that defines methods for executing a full text search. The IndexFileQueryHandler is a concrete implementation of QueryHandler that is provided with Oracle Help Technologies. Clients can create their own concrete implementations of QueryHandler (for custom search views in a helpset).
Constructor Summary | |
---|---|
QueryHandler() |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryHandler()
Method Detail |
---|
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()
|
Oracle Fusion Middleware Java API Reference for Oracle Help 12c (12.1.2) E48720-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |