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

      • ValueFacetResult

        public ValueFacetResult​(Long count,
                                T value)
        Constructor
        Parameters:
        count - The approximate count of documents.
        value - The value of the facet.
    • Method Detail

      • 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