Class RangeFacetResult<T>

java.lang.Object
com.azure.search.documents.models.RangeFacetResult<T>

public class RangeFacetResult<T> extends Object
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

    Constructors
    Constructor
    Description
    Constructor from FacetResult
    RangeFacetResult(Long count, T from, T to)
    Constructor of RangeFacetResult.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the approximate count of documents falling within the bucket described by this facet.
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RangeFacetResult

      public RangeFacetResult(Long count, T from, T to)
      Constructor of RangeFacetResult.
      Parameters:
      count - The count of the result.
      from - Value indicates the lower bound of facet's range
      to - Value indicates the upper bound of facet's range
    • RangeFacetResult

      public RangeFacetResult(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
    • getFrom

      public T 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

      public T 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