public class QueryNodeProcessorPipeline extends java.lang.Object implements QueryNodeProcessor, java.util.List<QueryNodeProcessor>
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 and Description |
---|
QueryNodeProcessorPipeline()
Constructs an empty query node processor pipeline.
|
QueryNodeProcessorPipeline(QueryConfigHandler queryConfigHandler)
Constructs with a
QueryConfigHandler object. |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
QueryNodeProcessor processor) |
boolean |
add(QueryNodeProcessor processor) |
boolean |
addAll(java.util.Collection<? extends QueryNodeProcessor> c) |
boolean |
addAll(int index,
java.util.Collection<? extends QueryNodeProcessor> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
QueryNodeProcessor |
get(int index) |
QueryConfigHandler |
getQueryConfigHandler()
For reference about this method check:
QueryNodeProcessor.getQueryConfigHandler() . |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<QueryNodeProcessor> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<QueryNodeProcessor> |
listIterator() |
java.util.ListIterator<QueryNodeProcessor> |
listIterator(int index) |
QueryNode |
process(QueryNode queryTree)
For reference about this method check:
QueryNodeProcessor.process(QueryNode) . |
QueryNodeProcessor |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
QueryNodeProcessor |
set(int index,
QueryNodeProcessor processor) |
void |
setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
For reference about this method check:
QueryNodeProcessor.setQueryConfigHandler(QueryConfigHandler) . |
int |
size() |
java.util.List<QueryNodeProcessor> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
public QueryNodeProcessorPipeline()
public QueryNodeProcessorPipeline(QueryConfigHandler queryConfigHandler)
QueryConfigHandler
object.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 processedQueryNodeException
- if something goes wrong during the query node
processingQueryNode
public void setQueryConfigHandler(QueryConfigHandler queryConfigHandler)
QueryNodeProcessor.setQueryConfigHandler(QueryConfigHandler)
.setQueryConfigHandler
in interface QueryNodeProcessor
queryConfigHandler
- the query configuration handler to be set.QueryNodeProcessor.getQueryConfigHandler()
,
QueryConfigHandler
public boolean add(QueryNodeProcessor processor)
add
in interface java.util.Collection<QueryNodeProcessor>
add
in interface java.util.List<QueryNodeProcessor>
List.add(Object)
public void add(int index, QueryNodeProcessor processor)
add
in interface java.util.List<QueryNodeProcessor>
List.add(int, Object)
public boolean addAll(java.util.Collection<? extends QueryNodeProcessor> c)
addAll
in interface java.util.Collection<QueryNodeProcessor>
addAll
in interface java.util.List<QueryNodeProcessor>
List.addAll(Collection)
public boolean addAll(int index, java.util.Collection<? extends QueryNodeProcessor> c)
addAll
in interface java.util.List<QueryNodeProcessor>
List.addAll(int, Collection)
public void clear()
clear
in interface java.util.Collection<QueryNodeProcessor>
clear
in interface java.util.List<QueryNodeProcessor>
List.clear()
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<QueryNodeProcessor>
contains
in interface java.util.List<QueryNodeProcessor>
List.contains(Object)
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<QueryNodeProcessor>
containsAll
in interface java.util.List<QueryNodeProcessor>
List.containsAll(Collection)
public QueryNodeProcessor get(int index)
get
in interface java.util.List<QueryNodeProcessor>
List.get(int)
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<QueryNodeProcessor>
List.indexOf(Object)
public boolean isEmpty()
isEmpty
in interface java.util.Collection<QueryNodeProcessor>
isEmpty
in interface java.util.List<QueryNodeProcessor>
List.isEmpty()
public java.util.Iterator<QueryNodeProcessor> iterator()
iterator
in interface java.lang.Iterable<QueryNodeProcessor>
iterator
in interface java.util.Collection<QueryNodeProcessor>
iterator
in interface java.util.List<QueryNodeProcessor>
List.iterator()
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<QueryNodeProcessor>
List.lastIndexOf(Object)
public java.util.ListIterator<QueryNodeProcessor> listIterator()
listIterator
in interface java.util.List<QueryNodeProcessor>
List.listIterator()
public java.util.ListIterator<QueryNodeProcessor> listIterator(int index)
listIterator
in interface java.util.List<QueryNodeProcessor>
List.listIterator(int)
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<QueryNodeProcessor>
remove
in interface java.util.List<QueryNodeProcessor>
List.remove(Object)
public QueryNodeProcessor remove(int index)
remove
in interface java.util.List<QueryNodeProcessor>
List.remove(int)
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<QueryNodeProcessor>
removeAll
in interface java.util.List<QueryNodeProcessor>
List.removeAll(Collection)
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<QueryNodeProcessor>
retainAll
in interface java.util.List<QueryNodeProcessor>
List.retainAll(Collection)
public QueryNodeProcessor set(int index, QueryNodeProcessor processor)
set
in interface java.util.List<QueryNodeProcessor>
List.set(int, Object)
public int size()
size
in interface java.util.Collection<QueryNodeProcessor>
size
in interface java.util.List<QueryNodeProcessor>
List.size()
public java.util.List<QueryNodeProcessor> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<QueryNodeProcessor>
List.subList(int, int)
public <T> T[] toArray(T[] array)
toArray
in interface java.util.Collection<QueryNodeProcessor>
toArray
in interface java.util.List<QueryNodeProcessor>
List.toArray(Object[])
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<QueryNodeProcessor>
toArray
in interface java.util.List<QueryNodeProcessor>
List.toArray()
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.