public class InternalAggregations extends java.lang.Object implements Aggregations, ToXContent, Streamable
Aggregations.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static InternalAggregations |
EMPTY |
EMPTY_PARAMS| Constructor and Description |
|---|
InternalAggregations(java.util.List<InternalAggregation> aggregations)
Constructs a new addAggregation.
|
| 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 map. |
<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 map. |
java.util.Iterator<Aggregation> |
iterator()
Iterates over the
Aggregations. |
static InternalAggregations |
readAggregations(StreamInput in) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static InternalAggregations |
readOptionalAggregations(StreamInput in) |
static InternalAggregations |
reduce(java.util.List<InternalAggregations> aggregationsList,
InternalAggregation.ReduceContext context)
Reduces the given lists of addAggregation.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
XContentBuilder |
toXContentInternal(XContentBuilder builder,
ToXContent.Params params)
Directly write all the addAggregation without their bounding object.
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic static final InternalAggregations EMPTY
public InternalAggregations(java.util.List<InternalAggregation> aggregations)
public java.util.Iterator<Aggregation> iterator()
Aggregations.iterator in interface java.lang.Iterable<Aggregation>public java.util.List<Aggregation> asList()
Aggregations.asList in interface Aggregationspublic java.util.Map<java.lang.String,Aggregation> asMap()
Aggregations keyed by map.asMap in interface Aggregationspublic java.util.Map<java.lang.String,Aggregation> getAsMap()
Aggregations keyed by map.getAsMap in interface Aggregationspublic <A extends Aggregation> A get(java.lang.String name)
Aggregationsget in interface Aggregationspublic static InternalAggregations reduce(java.util.List<InternalAggregations> aggregationsList, InternalAggregation.ReduceContext context)
aggregationsList - A list of aggregation to reducepublic 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 InternalAggregations readAggregations(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic static InternalAggregations readOptionalAggregations(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOException