Interface QueryNodeProcessor
-
- All Known Implementing Classes:
AllowLeadingWildcardProcessor,AnalyzerQueryNodeProcessor,BooleanModifiersQueryNodeProcessor,BooleanQuery2ModifierNodeProcessor,BooleanSingleChildOptimizationQueryNodeProcessor,BoostQueryNodeProcessor,DefaultPhraseSlopQueryNodeProcessor,FuzzyQueryNodeProcessor,GroupQueryNodeProcessor,LowercaseExpandedTermsQueryNodeProcessor,MatchAllDocsQueryNodeProcessor,MultiFieldQueryNodeProcessor,MultiTermRewriteMethodProcessor,NoChildOptimizationQueryNodeProcessor,NumericQueryNodeProcessor,NumericRangeQueryNodeProcessor,OpenRangeQueryNodeProcessor,PhraseSlopQueryNodeProcessor,PrecedenceQueryNodeProcessorPipeline,QueryNodeProcessorImpl,QueryNodeProcessorPipeline,RemoveDeletedQueryNodesProcessor,RemoveEmptyNonLeafQueryNodeProcessor,StandardQueryNodeProcessorPipeline,TermRangeQueryNodeProcessor,WildcardQueryNodeProcessor
public interface QueryNodeProcessorA
QueryNodeProcessoris an interface for classes that process aQueryNodetree.
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 aQueryConfigHandlerobject 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 anyQueryConfigHandlerassociated to the query tree to be processed, it should be set usingsetQueryConfigHandler(QueryConfigHandler)beforeprocess(QueryNode)is invoked.- See Also:
QueryNode,QueryNodeProcessor,QueryConfigHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QueryConfigHandlergetQueryConfigHandler()Returns theQueryConfigHandlerassociated to the query tree if any, otherwise it returnsnullQueryNodeprocess(QueryNode queryTree)Processes a query node tree.voidsetQueryConfigHandler(QueryConfigHandler queryConfigHandler)Sets theQueryConfigHandlerassociated to the query tree.
-
-
-
Method Detail
-
process
QueryNode process(QueryNode queryTree) throws QueryNodeException
Processes a query node tree. It may return the same or another query tree. I should never returnnull.- Parameters:
queryTree- tree root node- Returns:
- the processed query tree
- Throws:
QueryNodeException
-
setQueryConfigHandler
void setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
Sets theQueryConfigHandlerassociated to the query tree.
-
getQueryConfigHandler
QueryConfigHandler getQueryConfigHandler()
Returns theQueryConfigHandlerassociated to the query tree if any, otherwise it returnsnull- Returns:
- the
QueryConfigHandlerassociated to the query tree if any, otherwise it returnsnull
-
-