Package com.flower.docs.domain.search
Class Bucket
- java.lang.Object
-
- com.flower.docs.domain.search.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> <complexType name="Bucket"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="request" type="{http://flower.com/docs/domain/search}SearchRequest" minOccurs="0"/> <element name="count" type="{http://www.w3.org/2001/XMLSchema}long"/> <element name="children" type="{http://flower.com/docs/domain/search}Bucket" maxOccurs="unbounded"/> </sequence> </restriction> </complexContent> </complexType> </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 bucketprotected SearchRequest
request
List of Criterion on which results has been aggregated and its value
-
Constructor Summary
Constructors Constructor Description Bucket()
Default no-arg constructor abcBucket(SearchRequest request, long count, java.util.List<Bucket> children)
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>
getChildren()
Gets the value of the children property.long
getCount()
Gets the value of the count property.SearchRequest
getRequest()
Gets the value of the request property.int
hashCode()
void
setChildren(java.util.List<Bucket> value)
void
setCount(long value)
Sets the value of the count property.void
setRequest(SearchRequest value)
Sets the value of the request property.java.lang.String
toString()
-
-
-
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
-
setRequest
public void setRequest(SearchRequest value)
Sets the value of the request property.- Parameters:
value
- allowed object isSearchRequest
- See Also:
getRequest()
-
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 listBucket
<p> The children buckets. @See nested aggregations
-
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
-
setChildren
public void setChildren(java.util.List<Bucket> value)
- See Also:
getChildren()
-
-