public class ParametricRangeQueryNode extends QueryNodeImpl implements FieldableNode
ParametricRangeQueryNode represents LE, LT, GE, GT, EQ, NE query.
Example: date >= "2009-10-10" OR price = 200PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields| Constructor and Description |
|---|
ParametricRangeQueryNode(ParametricQueryNode lowerBound,
ParametricQueryNode upperBound) |
| Modifier and Type | Method and Description |
|---|---|
ParametricRangeQueryNode |
cloneTree()
Recursive clone the QueryNode tree The tags are not copied to the new tree
when you call the cloneTree() method
|
CharSequence |
getField()
Returns the field associated to the node and every node under it.
|
ParametricQueryNode |
getLowerBound() |
ParametricQueryNode |
getUpperBound() |
void |
setField(CharSequence fieldName)
Associates the node to a field.
|
CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser)
convert to a query string understood by the query parser
|
String |
toString()
Every implementation of this class should return pseudo xml like this:
For FieldQueryNode:
|
add, add, allocate, clone, containsTag, getChildren, getParent, getTag, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, unsetTagpublic ParametricRangeQueryNode(ParametricQueryNode lowerBound, ParametricQueryNode upperBound)
public ParametricQueryNode getUpperBound()
public ParametricQueryNode getLowerBound()
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNodetoQueryString in interface QueryNodepublic CharSequence getField()
FieldableNodegetField in interface FieldableNodepublic String toString()
QueryNodeImpltoString in interface QueryNodetoString in class QueryNodeImplQueryNode.toString()public ParametricRangeQueryNode cloneTree() throws CloneNotSupportedException
QueryNodecloneTree in interface QueryNodecloneTree in class QueryNodeImplCloneNotSupportedExceptionpublic void setField(CharSequence fieldName)
FieldableNodesetField in interface FieldableNodefieldName - the field nameCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.