C - The type of query element collectorpublic interface SearchAggregationBuilderFactory<C>
This is the main entry point for the engine to ask the backend to build search aggregations.
| Modifier and Type | Method and Description |
|---|---|
<A> void |
contribute(C collector,
AggregationKey<A> key,
SearchAggregation<A> aggregation)
Contribute an aggregation to a collector.
|
<T> RangeAggregationBuilder<T> |
createRangeAggregationBuilder(String absoluteFieldPath,
Class<T> expectedType,
ValueConvert convert) |
<T> TermsAggregationBuilder<T> |
createTermsAggregationBuilder(String absoluteFieldPath,
Class<T> expectedType,
ValueConvert convert) |
<A> void contribute(C collector, AggregationKey<A> key, SearchAggregation<A> aggregation)
May be called multiple times per collector, if there are multiple aggregations.
A - The type of result for this aggregation.collector - The query element collector.key - The aggregation key, used to later retrieve the result of the aggregation.aggregation - The aggregation implementation.<T> TermsAggregationBuilder<T> createTermsAggregationBuilder(String absoluteFieldPath, Class<T> expectedType, ValueConvert convert)
<T> RangeAggregationBuilder<T> createRangeAggregationBuilder(String absoluteFieldPath, Class<T> expectedType, ValueConvert convert)
Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.