Class NumberValue

    • Constructor Detail

      • NumberValue

        public NumberValue()
    • Method Detail

      • getValueLong

        public Long getValueLong()
        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
      • getValueInteger

        public Integer getValueInteger()
        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 the facet value
        Specified by:
        getCount in interface FacetValue
        Returns:
        the count of documents matching the value
      • setValue

        public NumberValue setValue​(BigDecimal value)
        The facet value
        Parameters:
        value - the value of the facet
        Returns:
        this.
      • setCount

        public NumberValue setCount​(Long count)
        The count of the facet value
        Parameters:
        count - the count of documents matching the value
        Returns:
        this.