public interface QueryNodeProcessor
QueryNodeProcessor
is an interface for classes that process a
QueryNode
tree.
The implementor of this class should perform some operation on a query node tree and return the same or another query node tree.
It also may carry a QueryConfigHandler
object that contains
configuration about the query represented by the query tree or the
collection/index where it's intended to be executed.
In case there is any QueryConfigHandler
associated to the query tree
to be processed, it should be set using
setQueryConfigHandler(QueryConfigHandler)
before
process(QueryNode)
is invoked.
QueryNode
,
QueryNodeProcessor
,
QueryConfigHandler
Modifier and Type | Method and Description |
---|---|
QueryConfigHandler |
getQueryConfigHandler()
Returns the
QueryConfigHandler associated to the query tree if any,
otherwise it returns null |
QueryNode |
process(QueryNode queryTree)
Processes a query node tree.
|
void |
setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
Sets the
QueryConfigHandler associated to the query tree. |
QueryNode process(QueryNode queryTree) throws QueryNodeException
null
.queryTree
- tree root nodeQueryNodeException
void setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
QueryConfigHandler
associated to the query tree.QueryConfigHandler getQueryConfigHandler()
QueryConfigHandler
associated to the query tree if any,
otherwise it returns null
QueryConfigHandler
associated to the query tree if any,
otherwise it returns null
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.