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
|
java.lang.CharSequence |
getField()
Returns the field associated to the node and every node under it.
|
ParametricQueryNode |
getLowerBound() |
ParametricQueryNode |
getUpperBound() |
void |
setField(java.lang.CharSequence fieldName)
Associates the node to a field.
|
java.lang.CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser)
convert to a query string understood by the query parser
|
java.lang.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, unsetTag
public ParametricRangeQueryNode(ParametricQueryNode lowerBound, ParametricQueryNode upperBound)
public ParametricQueryNode getUpperBound()
public ParametricQueryNode getLowerBound()
public java.lang.CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNode
toQueryString
in interface QueryNode
public java.lang.CharSequence getField()
FieldableNode
getField
in interface FieldableNode
public java.lang.String toString()
QueryNodeImpl
toString
in interface QueryNode
toString
in class QueryNodeImpl
QueryNode.toString()
public ParametricRangeQueryNode cloneTree() throws java.lang.CloneNotSupportedException
QueryNode
cloneTree
in interface QueryNode
cloneTree
in class QueryNodeImpl
java.lang.CloneNotSupportedException
public void setField(java.lang.CharSequence fieldName)
FieldableNode
setField
in interface FieldableNode
fieldName
- the field nameCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.