Class TermRange

    • Constructor Detail

      • TermRange

        public TermRange()
        Constructor.
      • TermRange

        public TermRange​(java.lang.String lowerTerm,
                         java.lang.String upperTerm)
        Constructor.
      • TermRange

        public TermRange​(java.lang.Object lowerTerm,
                         java.lang.Object upperTerm)
        Constructor.
      • TermRange

        public TermRange​(java.lang.String lowerTerm,
                         java.lang.String upperTerm,
                         boolean includeLower,
                         boolean includeUpper)
        Constructor.
      • TermRange

        public TermRange​(java.lang.Object lowerTerm,
                         java.lang.Object upperTerm,
                         boolean includeLower,
                         boolean includeUpper)
        Constructor.
    • Method Detail

      • isMatchAll

        public boolean isMatchAll()
        Returns true if this phrase will match all documents.
        Overrides:
        isMatchAll in class Phrase
      • setParameter

        public void setParameter​(java.lang.String name,
                                 java.lang.Object value)
        Set parameter name to value.

        NOTE: name is case insensitive.

        Overrides:
        setParameter in class PhraseTerm
      • getLowerTerm

        public java.lang.String getLowerTerm()
        Get the term that specifies the lower bounds for this range.

        If this value is null, the lower bound is unbounded.

      • setLowerTerm

        public void setLowerTerm​(java.lang.String value)
        Set the term that specifies the lower bounds for this range.

        If value is null, the lower bound will be unbounded.

      • setLowerTerm

        public void setLowerTerm​(java.lang.Object value)
        Set the term that specifies the lower bounds for this range.

        If value is null, the lower bound will be unbounded.

      • getUpperTerm

        public java.lang.String getUpperTerm()
        Get the term that specifies the upper bounds for this range.

        If this value is null, the upper bound is unbounded.

      • setUpperTerm

        public void setUpperTerm​(java.lang.String value)
        Set the term that specifies the upper bounds for this range.

        If value is null, the upper bound will be unbounded.

      • setUpperTerm

        public void setUpperTerm​(java.lang.Object value)
        Set the term that specifies the upper bounds for this range.

        If value is null, the upper bound will be unbounded.

      • isIncludeLower

        public boolean isIncludeLower()
        Get if the lower term should be included in the range.
      • setIncludeLower

        public void setIncludeLower​(boolean value)
        Set if the lower term should be included in the range.
      • isIncludeUpper

        public boolean isIncludeUpper()
        Get if the upper term should be included in the range.
      • setIncludeUpper

        public void setIncludeUpper​(boolean value)
        Set if the upper term should be included in the range.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class PhraseTerm
      • toString

        public void toString​(java.lang.StringBuilder buffer,
                             boolean compact)
        Appends the string representation of this query to buffer.
        Specified by:
        toString in class Phrase
      • lessThan

        public static TermRange lessThan​(java.lang.Object term)
        Creates a TermRange that matches all terms less than term.
      • greaterThan

        public static TermRange greaterThan​(java.lang.Object term)
        Creates a TermRange that matches all terms greater than term.