Class 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 Detail

      • 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
    • Method Detail

      • 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