Class NumberRange

    • Constructor Detail

      • NumberRange

        public NumberRange()
    • Method Detail

      • getToLong

        public Long getToLong()
        The raw Long representation of the facet value
        Returns:
        The Long value
        Throws:
        ArithmeticException - if this has a nonzero fractional part, or will not fit in a long
      • getToInteger

        public Integer getToInteger()
        The raw Integer representation of the facet value
        Returns:
        The Integer value
        Throws:
        ArithmeticException - if this has a nonzero fractional part, or will not fit in an int
      • getFromLong

        public Long getFromLong()
        The raw Long representation of the facet value
        Returns:
        The Long value
        Throws:
        ArithmeticException - if this has a nonzero fractional part, or will not fit in a long
      • getFromInteger

        public Integer getFromInteger()
        The raw Integer representation of the facet value
        Returns:
        The Integer value
        Throws:
        ArithmeticException - if this has a nonzero fractional part, or will not fit in an int
      • getCount

        public Long getCount()
        The count of documents matching this number range
        Specified by:
        getCount in interface FacetValue
        Returns:
        the count of documents
      • getName

        public String getName()
        The range name
        Returns:
        the name of the range
      • setFrom

        public NumberRange setFrom​(BigDecimal from)
        The start of the range, optional
        Parameters:
        from - the start of the range
        Returns:
        this.
      • setTo

        public NumberRange setTo​(BigDecimal to)
        The end of the range, optional
        Parameters:
        to - the end of the range
        Returns:
        this.
      • setCount

        public NumberRange setCount​(Long count)
        The count of documents matching this number range
        Parameters:
        count - the count of documents
        Returns:
        this.
      • setName

        public NumberRange setName​(String name)
        The range name
        Parameters:
        name - the name of the range
        Returns:
        this.