Class RangeFacetResult<T>
java.lang.Object
com.azure.search.documents.models.RangeFacetResult<T>
- Type Parameters:
T- The type of the facets.
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
ConstructorsConstructorDescriptionRangeFacetResult(FacetResult facetResult) Constructor fromFacetResultRangeFacetResult(Long count, T from, T to) Constructor of RangeFacetResult. -
Method Summary
Modifier and TypeMethodDescriptiongetCount()Gets the approximate count of documents falling within the bucket described by this facet.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).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).
-
Constructor Details
-
RangeFacetResult
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
Constructor fromFacetResult- Parameters:
facetResult-FacetResult.
-
-
Method Details
-
getCount
Gets the approximate count of documents falling within the bucket described by this facet.- Returns:
- count
-
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
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
-