public class PointRangeQueryNode extends AbstractRangeQueryNode<PointQueryNode>
PointQueryNode
bounds, which means the bound values are Numbers.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, toQueryStringadd, add, allocate, clone, cloneTree, containsTag, getChildren, getParent, getTag, getTagMap, isDefaultField, isLeaf, isRoot, removeChildren, removeFromParent, set, setLeaf, setTag, unsetTagequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, cloneTree, containsTag, getChildren, getParent, getTag, getTagMap, isLeaf, removeChildren, removeFromParent, set, setTag, unsetTagpublic 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, falseupperInclusive - true if the upper bound is inclusive, otherwise, falsenumericConfig - the PointsConfig that represents associated with the upper and lower boundsQueryNodeExceptionsetBounds(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, falseupperInclusive - true if the upper bound is inclusive, otherwise, falsepointsConfig - the PointsConfig that represents associated with the upper and lower boundsQueryNodeExceptionpublic PointsConfig getPointsConfig()
PointsConfig associated with the lower and upper bounds.PointsConfig associated with the lower and upper boundspublic String toString()
QueryNodeImpltoString in interface QueryNodetoString in class AbstractRangeQueryNode<PointQueryNode>QueryNode.toString()Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.