Class ElasticsearchAggregations
java.lang.Object
org.springframework.data.elasticsearch.client.elc.ElasticsearchAggregations
- All Implemented Interfaces:
AggregationsContainer<List<ElasticsearchAggregation>>
public class ElasticsearchAggregations
extends Object
implements AggregationsContainer<List<ElasticsearchAggregation>>
AggregationsContainer implementation for the Elasticsearch aggregations.
- Since:
- 4.4
- Author:
- Peter-Josef Meisch
-
Constructor Summary
ConstructorDescriptionElasticsearchAggregations
(List<ElasticsearchAggregation> aggregations) ElasticsearchAggregations
(Map<String, co.elastic.clients.elasticsearch._types.aggregations.Aggregate> aggregationsMap) convenience constructor taking a map as it is returned from the new Elasticsearch client. -
Method Summary
-
Constructor Details
-
ElasticsearchAggregations
-
ElasticsearchAggregations
public ElasticsearchAggregations(Map<String, co.elastic.clients.elasticsearch._types.aggregations.Aggregate> aggregationsMap) convenience constructor taking a map as it is returned from the new Elasticsearch client.- Parameters:
aggregationsMap
- aggregate map
-
-
Method Details
-
aggregations
- Specified by:
aggregations
in interfaceAggregationsContainer<List<ElasticsearchAggregation>>
- Returns:
- the concrete aggregations implementation
-