|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.queryParser.core.processors.QueryNodeProcessorPipeline
public class QueryNodeProcessorPipeline
A QueryNodeProcessorPipeline
class should be used to build a query
node processor pipeline.
When a query node tree is processed using this class, it passes the query
node tree to each processor on the pipeline and the result from each
processor is passed to the next one, always following the order the
processors were on the pipeline.
When a QueryConfigHandler
object is set on a
QueryNodeProcessorPipeline
, it takes care of also setting this
QueryConfigHandler
on all processor on pipeline.
Constructor Summary | |
---|---|
QueryNodeProcessorPipeline()
Constructs an empty query node processor pipeline. |
|
QueryNodeProcessorPipeline(QueryConfigHandler queryConfigHandler)
Constructs with a QueryConfigHandler object. |
Method Summary | |
---|---|
void |
addProcessor(QueryNodeProcessor processor)
Adds a processor to the pipeline, it's always added to the end of the pipeline. |
QueryConfigHandler |
getQueryConfigHandler()
For reference about this method check: QueryNodeProcessor.getQueryConfigHandler() . |
QueryNode |
process(QueryNode queryTree)
For reference about this method check: QueryNodeProcessor.process(QueryNode) . |
void |
setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
For reference about this method check: QueryNodeProcessor.setQueryConfigHandler(QueryConfigHandler) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryNodeProcessorPipeline()
public QueryNodeProcessorPipeline(QueryConfigHandler queryConfigHandler)
QueryConfigHandler
object.
Method Detail |
---|
public QueryConfigHandler getQueryConfigHandler()
QueryNodeProcessor.getQueryConfigHandler()
.
getQueryConfigHandler
in interface QueryNodeProcessor
QueryNodeProcessor.setQueryConfigHandler(QueryConfigHandler)
,
QueryConfigHandler
public QueryNode process(QueryNode queryTree) throws QueryNodeException
QueryNodeProcessor.process(QueryNode)
.
process
in interface QueryNodeProcessor
queryTree
- the query node tree to be processed
QueryNodeException
- if something goes wrong during the query node processingQueryNode
public void addProcessor(QueryNodeProcessor processor)
processor
- the processor to be addedpublic void setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
QueryNodeProcessor.setQueryConfigHandler(QueryConfigHandler)
.
setQueryConfigHandler
in interface QueryNodeProcessor
queryConfigHandler
- the query configuration handler to be set.QueryNodeProcessor.getQueryConfigHandler()
,
QueryConfigHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |