public class NumericRangeQueryNode extends AbstractRangeQueryNode<NumericQueryNode>
NumericQueryNode
bounds, which means the bound values are Number
s.NumericQueryNode
,
AbstractRangeQueryNode
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: <field start='1' end='2' field='subject' text='foo'/>
|
getField, getLowerBound, getUpperBound, isLowerInclusive, isUpperInclusive, setBounds, setField, toQueryString
add, add, allocate, clone, cloneTree, containsTag, getChildren, getParent, getTag, getTagMap, isDefaultField, isLeaf, isRoot, removeFromParent, set, setLeaf, setTag, unsetTag
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, add, cloneTree, containsTag, getChildren, getParent, getTag, getTagMap, isLeaf, removeFromParent, set, setTag, unsetTag
public 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, false
upperInclusive
- true
if the upper bound is inclusive, otherwise, false
numericConfig
- the NumericConfig
that represents associated with the upper and lower boundsQueryNodeException
setBounds(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, false
upperInclusive
- true
if the upper bound is inclusive, otherwise, false
numericConfig
- the NumericConfig
that represents associated with the upper and lower boundsQueryNodeException
public NumericConfig getNumericConfig()
NumericConfig
associated with the lower and upper bounds.NumericConfig
associated with the lower and upper boundspublic String toString()
QueryNodeImpl
toString
in interface QueryNode
toString
in class AbstractRangeQueryNode<NumericQueryNode>
QueryNode.toString()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.