public class InternalAggregations extends 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(List<InternalAggregation> aggregations)
Constructs a new addAggregation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final InternalAggregations EMPTY
public InternalAggregations(List<InternalAggregation> aggregations)
public Iterator<Aggregation> iterator()
Aggregations.iterator in interface Iterable<Aggregation>public List<Aggregation> asList()
Aggregations.asList in interface Aggregationspublic Map<String,Aggregation> asMap()
Aggregations keyed by map.asMap in interface Aggregationspublic Map<String,Aggregation> getAsMap()
Aggregations keyed by map.getAsMap in interface Aggregationspublic <A extends Aggregation> A get(String name)
Aggregationsget in interface Aggregationspublic static InternalAggregations reduce(List<InternalAggregations> aggregationsList, InternalAggregation.ReduceContext context)
aggregationsList - A list of aggregation to reducepublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic XContentBuilder toXContentInternal(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionpublic static InternalAggregations readAggregations(StreamInput in) throws IOException
IOExceptionpublic static InternalAggregations readOptionalAggregations(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2016. All rights reserved.