Class BucketInfo

    • Constructor Detail

      • BucketInfo

        public BucketInfo()
    • Method Detail

      • getBuckets

        public List<Bucket> getBuckets()

        A list of the calculated facet values and counts.

        Returns:
        A list of the calculated facet values and counts.
      • setBuckets

        public void setBuckets​(Collection<Bucket> buckets)

        A list of the calculated facet values and counts.

        Parameters:
        buckets - A list of the calculated facet values and counts.
      • withBuckets

        public BucketInfo withBuckets​(Bucket... buckets)

        A list of the calculated facet values and counts.

        NOTE: This method appends the values to the existing list (if any). Use setBuckets(java.util.Collection) or withBuckets(java.util.Collection) if you want to override the existing values.

        Parameters:
        buckets - A list of the calculated facet values and counts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withBuckets

        public BucketInfo withBuckets​(Collection<Bucket> buckets)

        A list of the calculated facet values and counts.

        Parameters:
        buckets - A list of the calculated facet values and counts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object