public class Aggregations extends java.lang.Object implements java.lang.Iterable<Aggregation>, ToXContent
AggregationsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<? extends Aggregation> |
aggregations |
static java.lang.String |
AGGREGATIONS_FIELD |
protected java.util.Map<java.lang.String,Aggregation> |
aggregationsAsMap |
EMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
Aggregations() |
|
Aggregations(java.util.List<? extends Aggregation> aggregations) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Aggregation> |
asList()
The list of
Aggregations. |
java.util.Map<java.lang.String,Aggregation> |
asMap()
Returns the
Aggregations keyed by aggregation name. |
boolean |
equals(java.lang.Object obj) |
static Aggregations |
fromXContent(XContentParser parser) |
<A extends Aggregation> |
get(java.lang.String name)
Returns the aggregation that is associated with the specified name.
|
java.util.Map<java.lang.String,Aggregation> |
getAsMap()
Returns the
Aggregations keyed by aggregation name. |
int |
hashCode() |
java.util.Iterator<Aggregation> |
iterator()
Iterates over the
Aggregations. |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
XContentBuilder |
toXContentInternal(XContentBuilder builder,
ToXContent.Params params)
Directly write all the aggregations without their bounding object.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic static final java.lang.String AGGREGATIONS_FIELD
protected java.util.List<? extends Aggregation> aggregations
protected java.util.Map<java.lang.String,Aggregation> aggregationsAsMap
protected Aggregations()
public Aggregations(java.util.List<? extends Aggregation> aggregations)
public final java.util.Iterator<Aggregation> iterator()
Aggregations.iterator in interface java.lang.Iterable<Aggregation>public final java.util.List<Aggregation> asList()
Aggregations.public final java.util.Map<java.lang.String,Aggregation> asMap()
Aggregations keyed by aggregation name.public final java.util.Map<java.lang.String,Aggregation> getAsMap()
Aggregations keyed by aggregation name.public final <A extends Aggregation> A get(java.lang.String name)
public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic XContentBuilder toXContentInternal(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic static Aggregations fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException