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, Sascha Woo
-
Constructor Summary
ConstructorDescriptionElasticsearchAggregations
(Map<String, co.elastic.clients.elasticsearch._types.aggregations.Aggregate> aggregations) -
Method Summary
Modifier and TypeMethodDescriptionReturns the aggregation that is associated with the specified name.
-
Constructor Details
-
ElasticsearchAggregations
-
-
Method Details
-
aggregations
- Specified by:
aggregations
in interfaceAggregationsContainer<List<ElasticsearchAggregation>>
- Returns:
- the concrete aggregations implementation
-
aggregationsAsMap
- Returns:
- the
ElasticsearchAggregation
s keyed by aggregation name.
-
get
Returns the aggregation that is associated with the specified name.- Parameters:
name
- the name of the aggregation- Returns:
- the aggregation or null if not found
-