Class RangeFacetResult<T>
- java.lang.Object
-
- com.azure.search.documents.models.RangeFacetResult<T>
-
public class RangeFacetResult<T> extends Object
A single bucket of a range facet query result that reports the number of documents with a field value falling within a particular range.
-
-
Constructor Summary
Constructors Constructor Description RangeFacetResult(FacetResult facetResult)
Constructor fromFacetResult
RangeFacetResult(Long count, T from, T to)
Constructor of RangeFacetResult.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getCount()
Gets the approximate count of documents falling within the bucket described by this facet.T
getFrom()
Gets a value indicating the inclusive lower bound of the facet's range, or null to indicate that there is no lower bound (i.e.T
getTo()
Gets a value indicating the exclusive upper bound of the facet's range, or null to indicate that there is no upper bound (i.e.
-
-
-
Constructor Detail
-
RangeFacetResult
public RangeFacetResult(Long count, T from, T to)
Constructor of RangeFacetResult.- Parameters:
count
- The count of the result.from
- Value indicates the lower bound of facet's rangeto
- Value indicates the upper bound of facet's range
-
RangeFacetResult
public RangeFacetResult(FacetResult facetResult)
Constructor fromFacetResult
- Parameters:
facetResult
-FacetResult
.
-
-
Method Detail
-
getCount
public Long getCount()
Gets the approximate count of documents falling within the bucket described by this facet.- Returns:
- count
-
getFrom
public T getFrom()
Gets a value indicating the inclusive lower bound of the facet's range, or null to indicate that there is no lower bound (i.e. -- for the first bucket).- Returns:
- from
-
getTo
public T getTo()
Gets a value indicating the exclusive upper bound of the facet's range, or null to indicate that there is no upper bound (i.e. -- for the last bucket).- Returns:
- to
-
-