public class InternalAggregations extends Objectimplements 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
Constructs a new addAggregation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final InternalAggregationsEMPTY
public InternalAggregations(List<InternalAggregation > aggregations)
public Iterator<Aggregation > iterator()
Aggregations.
public List<Aggregation > asList()
Aggregations.
public Map<String ,Aggregation > asMap()
Aggregations keyed by map.
public Map<String ,Aggregation > getAsMap()
Aggregations keyed by map.
public <A extends Aggregation> A get(String name)
Aggregations
get in interface
Aggregations
public static InternalAggregationsreduce(List <InternalAggregations > aggregationsList, InternalAggregation .ReduceContext context)
aggregationsList - A list of aggregation to reduce
public XContentBuildertoXContent(XContentBuilder builder, ToXContent .Params params) throws IOException
toXContent in interface
ToXContent
IOException
public XContentBuildertoXContentInternal(XContentBuilder builder, ToXContent .Params params) throws IOException
IOException
public static InternalAggregationsreadAggregations(StreamInput in) throws IOException
IOException
public static InternalAggregationsreadOptionalAggregations(StreamInput in) throws IOException
IOException
public void readFrom(StreamInputin) throws IOException
readFrom in interface
Streamable
IOException
public void writeTo(StreamOutputout) throws IOException
writeTo in interface
Streamable
IOException