public final class InternalAggregations extends Aggregations implements ToXContent, Streamable
Aggregations
.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static InternalAggregations |
EMPTY |
aggregations, AGGREGATIONS_FIELD, aggregationsAsMap
EMPTY_PARAMS
Constructor and Description |
---|
InternalAggregations(java.util.List<InternalAggregation> aggregations)
Constructs a new addAggregation.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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, toXContent
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 static InternalAggregations readOptionalAggregations(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