T - the type of the range query bounds (lower and upper)Serializable, Cloneable, FieldableNode, QueryNode, RangeQueryNode<FieldValuePairQueryNode<?>>NumericRangeQueryNode, TermRangeQueryNodepublic abstract class AbstractRangeQueryNode<T extends FieldValuePairQueryNode<?>> extends QueryNodeImpl implements RangeQueryNode<FieldValuePairQueryNode<?>>
PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractRangeQueryNode() |
Constructs an
AbstractRangeQueryNode, it should be invoked only by
its extenders. |
| Modifier and Type | Method | Description |
|---|---|---|
CharSequence |
getField() |
Returns the field associated with this node.
|
T |
getLowerBound() |
Returns the lower bound node.
|
T |
getUpperBound() |
Returns the upper bound node.
|
boolean |
isLowerInclusive() |
Returns whether the lower bound is inclusive or exclusive.
|
boolean |
isUpperInclusive() |
Returns whether the upper bound is inclusive or exclusive.
|
void |
setBounds(T lower,
T upper,
boolean lowerInclusive,
boolean upperInclusive) |
Sets the lower and upper bounds.
|
void |
setField(CharSequence fieldName) |
Sets the field associated with this node.
|
CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser) |
convert to a query string understood by the query parser
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, cloneTree, containsTag, containsTag, getChildren, getParent, getTag, getTag, getTagMap, getTags, isLeaf, set, setTag, setTag, toString, unsetTag, unsetTagadd, add, allocate, clone, cloneTree, containsTag, containsTag, getChildren, getParent, getTag, getTag, getTagMap, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, setTag, toString, unsetTag, unsetTagprotected AbstractRangeQueryNode()
AbstractRangeQueryNode, it should be invoked only by
its extenders.public CharSequence getField()
getField in interface FieldableNodeFieldableNodepublic void setField(CharSequence fieldName)
setField in interface FieldableNodefieldName - the field associated with this nodepublic T getLowerBound()
getLowerBound in interface RangeQueryNode<T extends FieldValuePairQueryNode<?>>public T getUpperBound()
getUpperBound in interface RangeQueryNode<T extends FieldValuePairQueryNode<?>>public boolean isLowerInclusive()
isLowerInclusive in interface RangeQueryNode<T extends FieldValuePairQueryNode<?>>true if the lower bound is inclusive, otherwise, falsepublic boolean isUpperInclusive()
isUpperInclusive in interface RangeQueryNode<T extends FieldValuePairQueryNode<?>>true if the upper bound is inclusive, otherwise, falsepublic void setBounds(T lower, T upper, boolean lowerInclusive, boolean upperInclusive)
lower - the lower bound, null if lower bound is openupper - the upper bound, null if upper bound is openlowerInclusive - true if the lower bound is inclusive, otherwise, falseupperInclusive - true if the upper bound is inclusive, otherwise, falsegetLowerBound(),
getUpperBound(),
isLowerInclusive(),
isUpperInclusive()public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNodetoQueryString in interface QueryNodeCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.