Class ValueFacetResult<T>
- java.lang.Object
-
- com.azure.search.documents.models.ValueFacetResult<T>
-
public class ValueFacetResult<T> extends Object
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
Constructors Constructor Description ValueFacetResult(FacetResult facetResult)
Constructor fromFacetResult
ValueFacetResult(Long count, T value)
Constructor
-
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
getValue()
Gets the value of the facet, or the inclusive lower bound if it's an interval facet.
-
-
-
Constructor Detail
-
ValueFacetResult
public ValueFacetResult(Long count, T value)
Constructor- Parameters:
count
- The approximate count of documents.value
- The value of the facet.
-
ValueFacetResult
public ValueFacetResult(FacetResult facetResult)
Constructor fromFacetResult
- Parameters:
facetResult
-FacetResult
.
-
-