org.apache.lucene.queryParser.core.nodes
public class: GroupQueryNode [javadoc |
source]
java.lang.Object
org.apache.lucene.queryParser.core.nodes.QueryNodeImpl
org.apache.lucene.queryParser.core.nodes.GroupQueryNode
All Implemented Interfaces:
Cloneable, QueryNode
A
GroupQueryNode represents a location where the original user typed
real parenthesis on the query string. This class is useful for queries like:
a) a AND b OR c b) ( a AND b) OR c
Parenthesis might be used to define the boolean operation precedence.
Constructor: |
public GroupQueryNode(QueryNode query) {
if (query == null) {
throw new QueryNodeError(new MessageImpl(
QueryParserMessages.PARAMETER_VALUE_NOT_SUPPORTED, "query", "null"));
}
allocate();
setLeaf(false);
add(query);
}
This QueryNode is used to identify parenthesis on the original query string |
Methods from org.apache.lucene.queryParser.core.nodes.QueryNodeImpl: |
---|
add, add, allocate, clone, cloneTree, containsTag, getChildren, getParent, getTag, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, toString, unsetTag |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |