Class NumberValue
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.response.search.facet.value.NumberValue
-
- All Implemented Interfaces:
FacetValue,FacetValueValue<BigDecimal>
public class NumberValue extends Object implements FacetValueValue<BigDecimal>
Represents a numeric facet value
-
-
Constructor Summary
Constructors Constructor Description NumberValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetCount()The count of the facet valueBigDecimalgetValue()The facet valueIntegergetValueInteger()The raw Integer representation of the facet valueLonggetValueLong()The raw Long representation of the facet valueNumberValuesetCount(Long count)The count of the facet valueNumberValuesetValue(BigDecimal value)The facet value
-
-
-
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
-
getValue
public BigDecimal getValue()
The facet value- Specified by:
getValuein interfaceFacetValueValue<BigDecimal>- Returns:
- the value of the facet
-
getCount
public Long getCount()
The count of the facet value- Specified by:
getCountin interfaceFacetValue- 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.
-
-