public class NumericRangeQueryNode extends AbstractRangeQueryNode<NumericQueryNode>
NumericQueryNode
bounds, which means the bound values are Numbers.| Modifier and Type | Field and Description |
|---|---|
NumericConfig |
numericConfig |
PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields| Constructor and Description |
|---|
NumericRangeQueryNode(NumericQueryNode lower,
NumericQueryNode upper,
boolean lowerInclusive,
boolean upperInclusive,
NumericConfig numericConfig)
Constructs a
NumericRangeQueryNode object using the given
NumericQueryNode as its bounds and NumericConfig. |
| Modifier and Type | Method and Description |
|---|---|
NumericConfig |
getNumericConfig()
Returns the
NumericConfig associated with the lower and upper bounds. |
void |
setBounds(NumericQueryNode lower,
NumericQueryNode upper,
boolean lowerInclusive,
boolean upperInclusive,
NumericConfig numericConfig)
Sets the upper and lower bounds of this range query node and the
NumericConfig associated with these bounds. |
String |
toString()
Every implementation of this class should return pseudo xml like this:
For FieldQueryNode:
|
getField, getLowerBound, getUpperBound, isLowerInclusive, isUpperInclusive, setBounds, setField, toQueryStringadd, add, allocate, clone, cloneTree, containsTag, containsTag, getChildren, getParent, getTag, getTag, getTagMap, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, setTag, unsetTag, unsetTagpublic NumericConfig numericConfig
public NumericRangeQueryNode(NumericQueryNode lower, NumericQueryNode upper, boolean lowerInclusive, boolean upperInclusive, NumericConfig numericConfig) throws QueryNodeException
NumericRangeQueryNode object using the given
NumericQueryNode as its bounds and NumericConfig.lower - the lower boundupper - the upper boundlowerInclusive - true if the lower bound is inclusive, otherwise, falseupperInclusive - true if the upper bound is inclusive, otherwise, falsenumericConfig - the NumericConfig that represents associated with the upper and lower boundsQueryNodeExceptionsetBounds(NumericQueryNode, NumericQueryNode, boolean, boolean, NumericConfig)public void setBounds(NumericQueryNode lower, NumericQueryNode upper, boolean lowerInclusive, boolean upperInclusive, NumericConfig numericConfig) throws QueryNodeException
NumericConfig associated with these bounds.lower - the lower boundupper - the upper boundlowerInclusive - true if the lower bound is inclusive, otherwise, falseupperInclusive - true if the upper bound is inclusive, otherwise, falsenumericConfig - the NumericConfig that represents associated with the upper and lower boundsQueryNodeExceptionpublic NumericConfig getNumericConfig()
NumericConfig associated with the lower and upper bounds.NumericConfig associated with the lower and upper boundspublic String toString()
QueryNodeImpltoString in interface QueryNodetoString in class QueryNodeImplQueryNode.toString()