Package org.opensearch.data.client.osc
Class OpenSearchAggregations
java.lang.Object
org.opensearch.data.client.osc.OpenSearchAggregations
- All Implemented Interfaces:
org.springframework.data.elasticsearch.core.AggregationsContainer<List<OpenSearchAggregation>>
public class OpenSearchAggregations
extends Object
implements org.springframework.data.elasticsearch.core.AggregationsContainer<List<OpenSearchAggregation>>
AggregationsContainer implementation for the OpenSearch aggregations.
- Since:
- 4.4
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchAggregations(Map<String, org.opensearch.client.opensearch._types.aggregations.Aggregate> aggregations) -
Method Summary
Modifier and TypeMethodDescriptionReturns the aggregation that is associated with the specified name.
-
Constructor Details
-
OpenSearchAggregations
-
-
Method Details
-
aggregations
- Specified by:
aggregationsin interfaceorg.springframework.data.elasticsearch.core.AggregationsContainer<List<OpenSearchAggregation>>
-
aggregationsAsMap
- Returns:
- the
OpenSearchAggregations 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
-