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 ClassesModifier and TypeClassDescriptionstatic classprotected static classNested classes/interfaces inherited from interface org.hibernate.search.backend.elasticsearch.search.aggregation.impl.ElasticsearchSearchAggregation
ElasticsearchSearchAggregation.Extractor<T> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.google.gson.JsonObjectdoRequest(AggregationRequestContext context) protected abstract ElasticsearchSearchAggregation.Extractor<A>extractor(AggregationRequestContext context) protected final booleanisNested()request(AggregationRequestContext context, AggregationKey<?> key, com.google.gson.JsonObject jsonAggregations) 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
indexNames
-
Field Details
-
nestedPathHierarchy
-
filter
-
-
Method Details
-
request
public final ElasticsearchSearchAggregation.Extractor<A> request(AggregationRequestContext context, AggregationKey<?> key, com.google.gson.JsonObject jsonAggregations) 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.Extractor.extract(JsonObject, AggregationExtractContext)method.- Returns:
- The JSON object representing the aggregation.
-
doRequest
-
extractor
protected abstract ElasticsearchSearchAggregation.Extractor<A> extractor(AggregationRequestContext context) -
isNested
protected final boolean isNested()
-