public class ParametricRangeQueryNode extends QueryNodeImpl implements RangeQueryNode<ParametricQueryNode>
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() |
boolean |
isLowerInclusive() |
boolean |
isUpperInclusive() |
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, containsTag, getChildren, getParent, getTag, getTag, getTagMap, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, setTag, unsetTag, unsetTagpublic ParametricRangeQueryNode(ParametricQueryNode lowerBound, ParametricQueryNode upperBound)
public ParametricQueryNode getUpperBound()
getUpperBound in interface RangeQueryNode<ParametricQueryNode>public ParametricQueryNode getLowerBound()
getLowerBound in interface RangeQueryNode<ParametricQueryNode>public java.lang.CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNodetoQueryString in interface QueryNodepublic java.lang.CharSequence getField()
FieldableNodegetField in interface FieldableNodepublic java.lang.String toString()
QueryNodeImpltoString in interface QueryNodetoString in class QueryNodeImplQueryNode.toString()public ParametricRangeQueryNode cloneTree() throws java.lang.CloneNotSupportedException
QueryNodecloneTree in interface QueryNodecloneTree in class QueryNodeImpljava.lang.CloneNotSupportedExceptionpublic void setField(java.lang.CharSequence fieldName)
FieldableNodesetField in interface FieldableNodefieldName - the field namepublic boolean isLowerInclusive()
isLowerInclusive in interface RangeQueryNode<ParametricQueryNode>public boolean isUpperInclusive()
isUpperInclusive in interface RangeQueryNode<ParametricQueryNode>Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.