Class SearchResponse

  • All Implemented Interfaces:
    java.io.Serializable

    public class SearchResponse
    extends java.lang.Object
    implements java.io.Serializable
    <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> &lt;complexType&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="found" type="{http://www.w3.org/2001/XMLSchema}int"/&gt; &lt;element name="duration" type="{http://www.w3.org/2001/XMLSchema}long"/&gt; &lt;element name="buckets" type="{http://flower.com/docs/domain/search}Bucket" maxOccurs="unbounded"/&gt; &lt;element name="fields" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="results" type="{http://flower.com/docs/domain/search}SearchResult" maxOccurs="unbounded" minOccurs="0"/&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> buckets  
      protected long duration
      The duration of a search request in milliseconds
      protected java.util.List<java.lang.String> fields  
      protected int found
      The total number of found objects independent of pagination
      protected java.util.List<SearchResult> results  
    • Constructor Summary

      Constructors 
      Constructor Description
      SearchResponse()
      Default no-arg constructor abc
      SearchResponse​(int found, long duration, java.util.List<Bucket> buckets, java.util.List<java.lang.String> fields, java.util.List<SearchResult> results)
      Fully-initialising value constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      java.util.List<Bucket> getBuckets()
      Gets the value of the buckets property.
      long getDuration()
      Gets the value of the duration property.
      java.util.List<java.lang.String> getFields()
      Gets the value of the fields property.
      int getFound()
      Gets the value of the found property.
      java.util.List<SearchResult> getResults()
      Gets the value of the results property.
      int hashCode()  
      void setBuckets​(java.util.List<Bucket> value)  
      void setDuration​(long value)
      Sets the value of the duration property.
      void setFields​(java.util.List<java.lang.String> value)  
      void setFound​(int value)
      Sets the value of the found property.
      void setResults​(java.util.List<SearchResult> value)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • found

        protected int found
        The total number of found objects independent of pagination
      • duration

        protected long duration
        The duration of a search request in milliseconds
      • buckets

        protected java.util.List<Bucket> buckets
      • fields

        protected java.util.List<java.lang.String> fields
    • Constructor Detail

      • SearchResponse

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

        public SearchResponse​(int found,
                              long duration,
                              java.util.List<Bucket> buckets,
                              java.util.List<java.lang.String> fields,
                              java.util.List<SearchResult> results)
        Fully-initialising value constructor
    • Method Detail

      • getFound

        public int getFound()
        Gets the value of the found property. <p> The total number of found objects independent of pagination
      • setFound

        public void setFound​(int value)
        Sets the value of the found property.
        See Also:
        getFound()
      • getDuration

        public long getDuration()
        Gets the value of the duration property. <p> The duration of a search request in milliseconds
      • setDuration

        public void setDuration​(long value)
        Sets the value of the duration property.
        See Also:
        getDuration()
      • getBuckets

        public java.util.List<Bucket> getBuckets()
        Gets the value of the buckets 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 buckets property. <p> For example, to add a new item, do as follows: <pre> getBuckets().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list Bucket
      • getFields

        public java.util.List<java.lang.String> getFields()
        Gets the value of the fields 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 fields property. <p> For example, to add a new item, do as follows: <pre> getFields().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list String
      • getResults

        public java.util.List<SearchResult> getResults()
        Gets the value of the results 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 results property. <p> For example, to add a new item, do as follows: <pre> getResults().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the list SearchResult
      • 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
      • setBuckets

        public void setBuckets​(java.util.List<Bucket> value)
      • setFields

        public void setFields​(java.util.List<java.lang.String> value)
      • setResults

        public void setResults​(java.util.List<SearchResult> value)