Class ValueFacetResult<T>
java.lang.Object
com.azure.search.documents.models.ValueFacetResult<T>
- Type Parameters:
T- The type of the facet.
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
ConstructorsConstructorDescriptionValueFacetResult(FacetResult facetResult) Constructor fromFacetResultValueFacetResult(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
-