public class PointRangeQueryNode extends AbstractRangeQueryNode<PointQueryNode>
PointQueryNode
bounds, which means the bound values are Number
s.PointQueryNode
,
AbstractRangeQueryNode
Modifier and Type | Field and Description |
---|---|
PointsConfig |
numericConfig |
PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields
Constructor and Description |
---|
PointRangeQueryNode(PointQueryNode lower,
PointQueryNode upper,
boolean lowerInclusive,
boolean upperInclusive,
PointsConfig numericConfig)
Constructs a
PointRangeQueryNode object using the given
PointQueryNode as its bounds and PointsConfig . |
Modifier and Type | Method and Description |
---|---|
PointsConfig |
getPointsConfig()
Returns the
PointsConfig associated with the lower and upper bounds. |
void |
setBounds(PointQueryNode lower,
PointQueryNode upper,
boolean lowerInclusive,
boolean upperInclusive,
PointsConfig pointsConfig)
Sets the upper and lower bounds of this range query node and the
PointsConfig 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, 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 PointsConfig numericConfig
public PointRangeQueryNode(PointQueryNode lower, PointQueryNode upper, boolean lowerInclusive, boolean upperInclusive, PointsConfig numericConfig) throws QueryNodeException
PointRangeQueryNode
object using the given
PointQueryNode
as its bounds and PointsConfig
.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 PointsConfig
that represents associated with the upper and lower boundsQueryNodeException
setBounds(PointQueryNode, PointQueryNode, boolean, boolean, PointsConfig)
public void setBounds(PointQueryNode lower, PointQueryNode upper, boolean lowerInclusive, boolean upperInclusive, PointsConfig pointsConfig) throws QueryNodeException
PointsConfig
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
pointsConfig
- the PointsConfig
that represents associated with the upper and lower boundsQueryNodeException
public PointsConfig getPointsConfig()
PointsConfig
associated with the lower and upper bounds.PointsConfig
associated with the lower and upper boundspublic String toString()
QueryNodeImpl
toString
in interface QueryNode
toString
in class AbstractRangeQueryNode<PointQueryNode>
QueryNode.toString()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.