Class AbstractRangeQueryNode<T extends FieldValuePairQueryNode<?>>

    • Method Detail

      • getField

        public java.lang.CharSequence getField()
        Returns the field associated with this node.
        Specified by:
        getField in interface FieldableNode
        Returns:
        the field associated with this node
        See Also:
        FieldableNode
      • setField

        public void setField​(java.lang.CharSequence fieldName)
        Sets the field associated with this node.
        Specified by:
        setField in interface FieldableNode
        Parameters:
        fieldName - the field associated with this node
      • isLowerInclusive

        public boolean isLowerInclusive()
        Returns whether the lower bound is inclusive or exclusive.
        Specified by:
        isLowerInclusive in interface RangeQueryNode<T extends FieldValuePairQueryNode<?>>
        Returns:
        true if the lower bound is inclusive, otherwise, false
      • isUpperInclusive

        public boolean isUpperInclusive()
        Returns whether the upper bound is inclusive or exclusive.
        Specified by:
        isUpperInclusive in interface RangeQueryNode<T extends FieldValuePairQueryNode<?>>
        Returns:
        true if the upper bound is inclusive, otherwise, false
      • setBounds

        public void setBounds​(T lower,
                              T upper,
                              boolean lowerInclusive,
                              boolean upperInclusive)
        Sets the lower and upper bounds.
        Parameters:
        lower - the lower bound, null if lower bound is open
        upper - the upper bound, null if upper bound is open
        lowerInclusive - true if the lower bound is inclusive, otherwise, false
        upperInclusive - true if the upper bound is inclusive, otherwise, false
        See Also:
        getLowerBound(), getUpperBound(), isLowerInclusive(), isUpperInclusive()
      • toQueryString

        public java.lang.CharSequence toQueryString​(EscapeQuerySyntax escapeSyntaxParser)
        Description copied from interface: QueryNode
        convert to a query string understood by the query parser
        Specified by:
        toQueryString in interface QueryNode
      • toString

        public java.lang.String toString()
        Description copied from class: QueryNodeImpl
        Every implementation of this class should return pseudo xml like this: For FieldQueryNode: <field start='1' end='2' field='subject' text='foo'/>
        Specified by:
        toString in interface QueryNode
        Overrides:
        toString in class QueryNodeImpl
        See Also:
        QueryNode.toString()