PointRangeQueryNode
instead.@Deprecated public class LegacyNumericRangeQueryNode extends AbstractRangeQueryNode<LegacyNumericQueryNode>
LegacyNumericQueryNode
bounds, which means the bound values are Number
s.LegacyNumericQueryNode
,
AbstractRangeQueryNode
Modifier and Type | Field and Description |
---|---|
LegacyNumericConfig |
numericConfig
Deprecated.
|
PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields
Constructor and Description |
---|
LegacyNumericRangeQueryNode(LegacyNumericQueryNode lower,
LegacyNumericQueryNode upper,
boolean lowerInclusive,
boolean upperInclusive,
LegacyNumericConfig numericConfig)
Deprecated.
Constructs a
LegacyNumericRangeQueryNode object using the given
LegacyNumericQueryNode as its bounds and LegacyNumericConfig . |
Modifier and Type | Method and Description |
---|---|
LegacyNumericConfig |
getNumericConfig()
Deprecated.
Returns the
LegacyNumericConfig associated with the lower and upper bounds. |
void |
setBounds(LegacyNumericQueryNode lower,
LegacyNumericQueryNode upper,
boolean lowerInclusive,
boolean upperInclusive,
LegacyNumericConfig numericConfig)
Deprecated.
Sets the upper and lower bounds of this range query node and the
LegacyNumericConfig associated with these bounds. |
String |
toString()
Deprecated.
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, removeChildren, removeFromParent, set, setLeaf, setTag, unsetTag
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, add, cloneTree, containsTag, getChildren, getParent, getTag, getTagMap, isLeaf, removeChildren, removeFromParent, set, setTag, unsetTag
public LegacyNumericConfig numericConfig
public LegacyNumericRangeQueryNode(LegacyNumericQueryNode lower, LegacyNumericQueryNode upper, boolean lowerInclusive, boolean upperInclusive, LegacyNumericConfig numericConfig) throws QueryNodeException
LegacyNumericRangeQueryNode
object using the given
LegacyNumericQueryNode
as its bounds and LegacyNumericConfig
.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 LegacyNumericConfig
that represents associated with the upper and lower boundsQueryNodeException
setBounds(LegacyNumericQueryNode, LegacyNumericQueryNode, boolean, boolean, LegacyNumericConfig)
public void setBounds(LegacyNumericQueryNode lower, LegacyNumericQueryNode upper, boolean lowerInclusive, boolean upperInclusive, LegacyNumericConfig numericConfig) throws QueryNodeException
LegacyNumericConfig
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 LegacyNumericConfig
that represents associated with the upper and lower boundsQueryNodeException
public LegacyNumericConfig getNumericConfig()
LegacyNumericConfig
associated with the lower and upper bounds.LegacyNumericConfig
associated with the lower and upper boundspublic String toString()
QueryNodeImpl
toString
in interface QueryNode
toString
in class AbstractRangeQueryNode<LegacyNumericQueryNode>
QueryNode.toString()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.