Interface ElasticsearchSearchAggregation.Extractor<T>
- All Known Implementing Classes:
AbstractElasticsearchBucketAggregation.AbstractBucketExtractor,AbstractElasticsearchNestableAggregation.AbstractExtractor,ElasticsearchRangeAggregation.RangeBucketExtractor,ElasticsearchTermsAggregation.TermsBucketExtractor
- Enclosing interface:
- ElasticsearchSearchAggregation<A>
public static interface ElasticsearchSearchAggregation.Extractor<T>
-
Method Summary
Modifier and TypeMethodDescriptionextract(com.google.gson.JsonObject aggregationResult, AggregationExtractContext context) Extract the result of the aggregation from the response.
-
Method Details
-
extract
Extract the result of the aggregation from the response.- Parameters:
aggregationResult- The part of the response body relevant to the aggregation to extract.context- The extract context, to extract information from the response's JSON body or retrieve information that was stored earlier in theElasticsearchSearchAggregation.request(AggregationRequestContext, AggregationKey, JsonObject)method.- Returns:
- The aggregation result extracted from the response.
-