Class AbstractElasticsearchNestableAggregation.AbstractExtractor<T>
java.lang.Object
org.hibernate.search.backend.elasticsearch.search.aggregation.impl.AbstractElasticsearchNestableAggregation.AbstractExtractor<T>
- All Implemented Interfaces:
ElasticsearchSearchAggregation.Extractor<T>
- Direct Known Subclasses:
AbstractElasticsearchBucketAggregation.AbstractBucketExtractor
- Enclosing class:
- AbstractElasticsearchNestableAggregation<A>
protected abstract static class AbstractElasticsearchNestableAggregation.AbstractExtractor<T>
extends Object
implements ElasticsearchSearchAggregation.Extractor<T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractExtractor(List<String> nestedPathHierarchy, ElasticsearchSearchPredicate filter) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TdoExtract(com.google.gson.JsonObject aggregationResult, AggregationExtractContext context) final Textract(com.google.gson.JsonObject aggregationResult, AggregationExtractContext context) Extract the result of the aggregation from the response.
-
Constructor Details
-
AbstractExtractor
-
-
Method Details
-
extract
public final T extract(com.google.gson.JsonObject aggregationResult, AggregationExtractContext context) Description copied from interface:ElasticsearchSearchAggregation.ExtractorExtract the result of the aggregation from the response.- Specified by:
extractin interfaceElasticsearchSearchAggregation.Extractor<T>- 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.
-
doExtract
protected abstract T doExtract(com.google.gson.JsonObject aggregationResult, AggregationExtractContext context)
-