Class ValueFacetResult<T>
java.lang.Object
com.azure.search.documents.models.ValueFacetResult<T>
A single bucket of a simple or interval facet query result that reports the number of documents with a field
falling within a particular interval or having a specific value.
-
Constructor Summary
ConstructorDescriptionValueFacetResult
(FacetResult facetResult) Constructor fromFacetResult
ValueFacetResult
(Long count, T value) Constructor -
Method Summary
-
Constructor Details
-
ValueFacetResult
Constructor- Parameters:
count
- The approximate count of documents.value
- The value of the facet.
-
ValueFacetResult
Constructor fromFacetResult
- Parameters:
facetResult
-FacetResult
.
-
-
Method Details
-
getCount
Gets the approximate count of documents falling within the bucket described by this facet.- Returns:
- count
-
getValue
Gets the value of the facet, or the inclusive lower bound if it's an interval facet.- Returns:
- value
-