PointRangeQueryNode

class PointRangeQueryNode(lower: PointQueryNode, upper: PointQueryNode, lowerInclusive: Boolean, upperInclusive: Boolean, numericConfig: PointsConfig) : AbstractRangeQueryNode<PointQueryNode>

This query node represents a range query composed by PointQueryNode bounds, which means the bound values are Numbers.

See also

Constructors

Link copied to clipboard
constructor(lower: PointQueryNode, upper: PointQueryNode, lowerInclusive: Boolean, upperInclusive: Boolean, numericConfig: PointsConfig)

Properties

Link copied to clipboard
Link copied to clipboard
open override var field: CharSequence?

Returns the field associated with this node.

Link copied to clipboard
override val isLeaf: Boolean

verify if a node is a Leaf node

Link copied to clipboard
open override val isLowerInclusive: Boolean

Returns whether the lower bound is inclusive or exclusive.

Link copied to clipboard
open override val isUpperInclusive: Boolean

Returns whether the upper bound is inclusive or exclusive.

Link copied to clipboard
open override val lowerBound: PointQueryNode

Returns the lower bound node.

Link copied to clipboard
Link copied to clipboard
override val parent: QueryNode?
Link copied to clipboard
override val tagMap: Map<String, Any>

Returns a map containing all tags attached to this query node.

Link copied to clipboard
open override val upperBound: PointQueryNode

Returns the upper bound node.

Functions

Link copied to clipboard
override fun add(children: List<QueryNode>)
override fun add(child: QueryNode)
Link copied to clipboard
open override fun clone(): QueryNode
Link copied to clipboard
open override fun cloneTree(): QueryNode

Recursive clone the QueryNode tree The tags are not copied to the new tree when you call the cloneTree() method

Link copied to clipboard
open override fun containsTag(tagName: String): Boolean

verify if a node contains a tag

Link copied to clipboard

Returns the PointsConfig associated with the lower and upper bounds.

Link copied to clipboard
open override fun getTag(tagName: String): Any?

Returns object stored under that tag name

Link copied to clipboard
open override fun removeChildren(childNode: QueryNode)

Remove a child node

Link copied to clipboard
open override fun removeFromParent()

Removes this query node from its parent.

Link copied to clipboard
override fun set(children: List<QueryNode>)
Link copied to clipboard
fun setBounds(lower: PointQueryNode?, upper: PointQueryNode?, lowerInclusive: Boolean, upperInclusive: Boolean)

Sets the lower and upper bounds.

fun setBounds(lower: PointQueryNode?, upper: PointQueryNode?, lowerInclusive: Boolean, upperInclusive: Boolean, pointsConfig: PointsConfig)

Sets the upper and lower bounds of this range query node and the PointsConfig associated with these bounds.

Link copied to clipboard
open override fun setTag(tagName: String, value: Any)

Associate the specified value with the specified tagName. If the tagName already exists, the old value is replaced. The tagName and value cannot be null. tagName will be converted to lowercase.

Link copied to clipboard
open override fun toQueryString(escapeSyntaxParser: EscapeQuerySyntax): CharSequence

convert to a query string understood by the query parser

Link copied to clipboard
open override fun toString(): String

Every implementation of this class should return pseudo xml like this:

Link copied to clipboard
open override fun unsetTag(tagName: String)

Unset a tag. tagName will be converted to lowercase.