Class AbstractElasticsearchBucketAggregation<K,V>
- java.lang.Object
-
- org.hibernate.search.backend.elasticsearch.search.aggregation.impl.AbstractElasticsearchAggregation<A>
-
- org.hibernate.search.backend.elasticsearch.search.aggregation.impl.AbstractElasticsearchNestableAggregation<Map<K,V>>
-
- org.hibernate.search.backend.elasticsearch.search.aggregation.impl.AbstractElasticsearchBucketAggregation<K,V>
-
- Type Parameters:
K- The type of keys in the returned map.V- The type of values in the returned map.
- All Implemented Interfaces:
ElasticsearchSearchAggregation<Map<K,V>>,SearchAggregation<Map<K,V>>
- Direct Known Subclasses:
ElasticsearchRangeAggregation,ElasticsearchTermsAggregation
public abstract class AbstractElasticsearchBucketAggregation<K,V> extends AbstractElasticsearchNestableAggregation<Map<K,V>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractElasticsearchBucketAggregation.AbstractBuilder<K,V>
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Map<K,V>doExtract(com.google.gson.JsonObject aggregationResult, AggregationExtractContext context)protected abstract Map<K,V>doExtract(AggregationExtractContext context, com.google.gson.JsonElement buckets)protected abstract voiddoRequest(com.google.gson.JsonObject outerObject, com.google.gson.JsonObject innerObject)protected com.google.gson.JsonObjectdoRequest(AggregationRequestContext context)protected longgetBucketDocCount(com.google.gson.JsonObject bucket)-
Methods inherited from class org.hibernate.search.backend.elasticsearch.search.aggregation.impl.AbstractElasticsearchNestableAggregation
extract, isNested, request
-
Methods inherited from class org.hibernate.search.backend.elasticsearch.search.aggregation.impl.AbstractElasticsearchAggregation
getIndexNames
-
-
-
-
Method Detail
-
doRequest
protected final com.google.gson.JsonObject doRequest(AggregationRequestContext context)
- Specified by:
doRequestin classAbstractElasticsearchNestableAggregation<Map<K,V>>
-
doExtract
protected final Map<K,V> doExtract(com.google.gson.JsonObject aggregationResult, AggregationExtractContext context)
- Specified by:
doExtractin classAbstractElasticsearchNestableAggregation<Map<K,V>>
-
doRequest
protected abstract void doRequest(com.google.gson.JsonObject outerObject, com.google.gson.JsonObject innerObject)
-
doExtract
protected abstract Map<K,V> doExtract(AggregationExtractContext context, com.google.gson.JsonElement buckets)
-
getBucketDocCount
protected final long getBucketDocCount(com.google.gson.JsonObject bucket)
-
-