Class DateRange
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.response.search.facet.value.DateRange
-
- All Implemented Interfaces:
FacetRangeValue<OffsetDateTime>,FacetValue
public class DateRange extends Object implements FacetRangeValue<OffsetDateTime>
Represents a facet value for a Date range
-
-
Constructor Summary
Constructors Constructor Description DateRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetCount()The number of documents matching this rangeOffsetDateTimegetFrom()The start of the range, optionalStringgetName()The name of this date range, optionalOffsetDateTimegetTo()The end of the range, optionalDateRangesetCount(Long count)The number of documents matching this rangeDateRangesetFrom(OffsetDateTime from)The start of the range, optionalDateRangesetName(String name)The name of this date range, optionalDateRangesetTo(OffsetDateTime to)The end of the range, optional
-
-
-
Method Detail
-
getFrom
public OffsetDateTime getFrom()
The start of the range, optional- Specified by:
getFromin interfaceFacetRangeValue<OffsetDateTime>- Returns:
- the start of the date range, or null if no start range is defined
-
getTo
public OffsetDateTime getTo()
The end of the range, optional- Specified by:
getToin interfaceFacetRangeValue<OffsetDateTime>- Returns:
- the end of the date range, or null if no start range is defined
-
getCount
public Long getCount()
The number of documents matching this range- Specified by:
getCountin interfaceFacetValue- Returns:
- the count of documents matching this range
-
getName
public String getName()
The name of this date range, optional- Returns:
- the name for this range, or null if no value is defined
-
setFrom
public DateRange setFrom(OffsetDateTime from)
The start of the range, optional- Parameters:
from- The start of the date range- Returns:
this.
-
setTo
public DateRange setTo(OffsetDateTime to)
The end of the range, optional- Parameters:
to- The end of the date range- Returns:
this.
-
setCount
public DateRange setCount(Long count)
The number of documents matching this range- Parameters:
count- the count of documents- Returns:
this.
-
-