Class AbstractElasticsearchNestableAggregation<A>
- java.lang.Object
-
- org.hibernate.search.backend.elasticsearch.search.aggregation.impl.AbstractElasticsearchAggregation<A>
-
- org.hibernate.search.backend.elasticsearch.search.aggregation.impl.AbstractElasticsearchNestableAggregation<A>
-
- All Implemented Interfaces:
ElasticsearchSearchAggregation<A>,SearchAggregation<A>
- Direct Known Subclasses:
AbstractElasticsearchBucketAggregation
public abstract class AbstractElasticsearchNestableAggregation<A> extends AbstractElasticsearchAggregation<A>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractElasticsearchNestableAggregation.AbstractBuilder<A>
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AdoExtract(com.google.gson.JsonObject aggregationResult, AggregationExtractContext context)protected abstract com.google.gson.JsonObjectdoRequest(AggregationRequestContext context)Aextract(com.google.gson.JsonObject aggregationResult, AggregationExtractContext context)Extract the result of the aggregation from the response.protected booleanisNested()com.google.gson.JsonObjectrequest(AggregationRequestContext context)Contribute to the request, making sure that the requirements for this aggregation are met.-
Methods inherited from class org.hibernate.search.backend.elasticsearch.search.aggregation.impl.AbstractElasticsearchAggregation
getIndexNames
-
-
-
-
Method Detail
-
request
public final com.google.gson.JsonObject request(AggregationRequestContext context)
Description copied from interface:ElasticsearchSearchAggregationContribute to the request, making sure that the requirements for this aggregation are met.- Parameters:
context- The request context, to access context information or store information that will be made available later to theElasticsearchSearchAggregation.extract(JsonObject, AggregationExtractContext)method.- Returns:
- The JSON object representing the aggregation.
-
doRequest
protected abstract com.google.gson.JsonObject doRequest(AggregationRequestContext context)
-
extract
public final A extract(com.google.gson.JsonObject aggregationResult, AggregationExtractContext context)
Description copied from interface:ElasticsearchSearchAggregationExtract 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)method.- Returns:
- The aggregation result extracted from the response.
-
doExtract
protected abstract A doExtract(com.google.gson.JsonObject aggregationResult, AggregationExtractContext context)
-
isNested
protected final boolean isNested()
-
-