Package com.flower.docs.domain.search
Class SearchResponse
- java.lang.Object
-
- com.flower.docs.domain.search.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> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="found" type="{http://www.w3.org/2001/XMLSchema}int"/> <element name="duration" type="{http://www.w3.org/2001/XMLSchema}long"/> <element name="buckets" type="{http://flower.com/docs/domain/search}Bucket" maxOccurs="unbounded"/> <element name="fields" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> <element name="results" type="{http://flower.com/docs/domain/search}SearchResult" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </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 millisecondsprotected java.util.List<java.lang.String>
fields
protected int
found
The total number of found objects independent of paginationprotected java.util.List<SearchResult>
results
-
Constructor Summary
Constructors Constructor Description SearchResponse()
Default no-arg constructor abcSearchResponse(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()
-
-
-
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
-
results
protected java.util.List<SearchResult> results
-
-
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 listBucket
-
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 listString
-
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 listSearchResult
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.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)
-
-