|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 also takes care of 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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public QueryNodeProcessorPipeline()
public QueryNodeProcessorPipeline(QueryConfigHandler queryConfigHandler)
QueryConfigHandler object.
| Method Detail |
|---|
public QueryConfigHandler getQueryConfigHandler()
QueryNodeProcessor.getQueryConfigHandler().
getQueryConfigHandler in interface QueryNodeProcessorQueryNodeProcessor.setQueryConfigHandler(QueryConfigHandler),
QueryConfigHandler
public QueryNode process(QueryNode queryTree)
throws QueryNodeException
QueryNodeProcessor.process(QueryNode).
process in interface QueryNodeProcessorqueryTree - the query node tree to be processed
QueryNodeException - if something goes wrong during the query node
processingQueryNode@Deprecated public void addProcessor(QueryNodeProcessor processor)
List interface, so use
add(QueryNodeProcessor) instead
processor - the processor to be addedpublic void setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
QueryNodeProcessor.setQueryConfigHandler(QueryConfigHandler).
setQueryConfigHandler in interface QueryNodeProcessorqueryConfigHandler - the query configuration handler to be set.QueryNodeProcessor.getQueryConfigHandler(),
QueryConfigHandlerpublic boolean add(QueryNodeProcessor processor)
add in interface Collection<QueryNodeProcessor>add in interface List<QueryNodeProcessor>List.add(Object)
public void add(int index,
QueryNodeProcessor processor)
add in interface List<QueryNodeProcessor>List.add(int, Object)public boolean addAll(Collection<? extends QueryNodeProcessor> c)
addAll in interface Collection<QueryNodeProcessor>addAll in interface List<QueryNodeProcessor>List.addAll(Collection)
public boolean addAll(int index,
Collection<? extends QueryNodeProcessor> c)
addAll in interface List<QueryNodeProcessor>List.addAll(int, Collection)public void clear()
clear in interface Collection<QueryNodeProcessor>clear in interface List<QueryNodeProcessor>List.clear()public boolean contains(Object o)
contains in interface Collection<QueryNodeProcessor>contains in interface List<QueryNodeProcessor>List.contains(Object)public boolean containsAll(Collection<?> c)
containsAll in interface Collection<QueryNodeProcessor>containsAll in interface List<QueryNodeProcessor>List.containsAll(Collection)public QueryNodeProcessor get(int index)
get in interface List<QueryNodeProcessor>List.get(int)public int indexOf(Object o)
indexOf in interface List<QueryNodeProcessor>List.indexOf(Object)public boolean isEmpty()
isEmpty in interface Collection<QueryNodeProcessor>isEmpty in interface List<QueryNodeProcessor>List.isEmpty()public Iterator<QueryNodeProcessor> iterator()
iterator in interface Iterable<QueryNodeProcessor>iterator in interface Collection<QueryNodeProcessor>iterator in interface List<QueryNodeProcessor>List.iterator()public int lastIndexOf(Object o)
lastIndexOf in interface List<QueryNodeProcessor>List.lastIndexOf(Object)public ListIterator<QueryNodeProcessor> listIterator()
listIterator in interface List<QueryNodeProcessor>List.listIterator()public ListIterator<QueryNodeProcessor> listIterator(int index)
listIterator in interface List<QueryNodeProcessor>List.listIterator(int)public boolean remove(Object o)
remove in interface Collection<QueryNodeProcessor>remove in interface List<QueryNodeProcessor>List.remove(Object)public QueryNodeProcessor remove(int index)
remove in interface List<QueryNodeProcessor>List.remove(int)public boolean removeAll(Collection<?> c)
removeAll in interface Collection<QueryNodeProcessor>removeAll in interface List<QueryNodeProcessor>List.removeAll(Collection)public boolean retainAll(Collection<?> c)
retainAll in interface Collection<QueryNodeProcessor>retainAll in interface List<QueryNodeProcessor>List.retainAll(Collection)
public QueryNodeProcessor set(int index,
QueryNodeProcessor processor)
set in interface List<QueryNodeProcessor>List.set(int, Object)public int size()
size in interface Collection<QueryNodeProcessor>size in interface List<QueryNodeProcessor>List.size()
public List<QueryNodeProcessor> subList(int fromIndex,
int toIndex)
subList in interface List<QueryNodeProcessor>List.subList(int, int)public <T> T[] toArray(T[] array)
toArray in interface Collection<QueryNodeProcessor>toArray in interface List<QueryNodeProcessor>List.toArray(Object[])public Object[] toArray()
toArray in interface Collection<QueryNodeProcessor>toArray in interface List<QueryNodeProcessor>List.toArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||