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 Details

    • 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 from FacetResult
      Parameters:
      facetResult - FacetResult.
  • Method Details

    • getCount

      public Long getCount()
      Gets the approximate count of documents falling within the bucket described by this facet.
      Returns:
      count
    • getValue

      public T getValue()
      Gets the value of the facet, or the inclusive lower bound if it's an interval facet.
      Returns:
      value