Class Bucket

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    NamedBucket

    public class Bucket
    extends java.lang.Object
    implements java.io.Serializable
    An aggregation result in which document can be categorized <p>Java class for Bucket complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType name="Bucket"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="request" type="{http://flower.com/docs/domain/search}SearchRequest" minOccurs="0"/&gt; &lt;element name="count" type="{http://www.w3.org/2001/XMLSchema}long"/&gt; &lt;element name="children" type="{http://flower.com/docs/domain/search}Bucket" maxOccurs="unbounded"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<Bucket> children
      The children buckets.
      protected long count
      The number of results in this bucket
      protected SearchRequest request
      List of Criterion on which results has been aggregated and its value
    • Constructor Summary

      Constructors 
      Constructor Description
      Bucket()
      Default no-arg constructor abc
      Bucket​(SearchRequest request, long count, java.util.List<Bucket> children)
      Fully-initialising value constructor
    • Field Detail

      • request

        protected SearchRequest request
        List of Criterion on which results has been aggregated and its value
      • count

        protected long count
        The number of results in this bucket
      • children

        protected java.util.List<Bucket> children
        The children buckets. @See nested aggregations
    • Constructor Detail

      • Bucket

        public Bucket()
        Default no-arg constructor abc
      • Bucket

        public Bucket​(SearchRequest request,
                      long count,
                      java.util.List<Bucket> children)
        Fully-initialising value constructor
    • Method Detail

      • getRequest

        public SearchRequest getRequest()
        Gets the value of the request property. <p> List of Criterion on which results has been aggregated and its value
        Returns:
        possible object is SearchRequest
      • getCount

        public long getCount()
        Gets the value of the count property. <p> The number of results in this bucket
      • setCount

        public void setCount​(long value)
        Sets the value of the count property.
        See Also:
        getCount()
      • getChildren

        public java.util.List<Bucket> getChildren()
        Gets the value of the children property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the children property. <p> For example, to add a new item, do as follows: <pre> getChildren().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list Bucket <p> The children buckets. @See nested aggregations
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • setChildren

        public void setChildren​(java.util.List<Bucket> value)
        See Also:
        getChildren()