java.lang.Iterable<Aggregation>
, Streamable
, ToXContent
, ToXContentFragment
public final class InternalAggregations extends Aggregations implements Streamable
Aggregations
.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field | Description |
---|---|---|
static InternalAggregations |
EMPTY |
aggregations, AGGREGATIONS_FIELD, aggregationsAsMap
EMPTY_PARAMS
Constructor | Description |
---|---|
InternalAggregations(java.util.List<InternalAggregation> aggregations) |
Constructs a new addAggregation.
|
Modifier and Type | Method | Description |
---|---|---|
static InternalAggregations |
readAggregations(StreamInput in) |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
static InternalAggregations |
reduce(java.util.List<InternalAggregations> aggregationsList,
InternalAggregation.ReduceContext context) |
Reduces the given lists of addAggregation.
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
asList, asMap, equals, fromXContent, get, getAsMap, hashCode, iterator, toXContent, toXContentInternal
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFragment
public static final InternalAggregations EMPTY
public InternalAggregations(java.util.List<InternalAggregation> aggregations)
public static InternalAggregations reduce(java.util.List<InternalAggregations> aggregationsList, InternalAggregation.ReduceContext context)
aggregationsList
- A list of aggregation to reducepublic static InternalAggregations readAggregations(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException