Class MultiBucketAggregate<B extends Bucket>
- java.lang.Object
-
- org.nuxeo.ecm.platform.query.core.AggregateBase<B>
-
- org.nuxeo.elasticsearch.aggregate.AggregateEsBase<org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation,B>
-
- org.nuxeo.elasticsearch.aggregate.MultiBucketAggregate<B>
-
- All Implemented Interfaces:
Aggregate<B>
- Direct Known Subclasses:
DateHistogramAggregate
,DateRangeAggregate
,HistogramAggregate
,RangeAggregate
,SignificantTermAggregate
,TermAggregate
public abstract class MultiBucketAggregate<B extends Bucket> extends AggregateEsBase<org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation,B>
An aggregate that returns multiple buckets.- Since:
- 10.3
-
-
Field Summary
-
Fields inherited from class org.nuxeo.elasticsearch.aggregate.AggregateEsBase
ES_MUTLI_LEVEL_SEP, MAX_AGG_SIZE, XPATH_SEP
-
Fields inherited from class org.nuxeo.ecm.platform.query.core.AggregateBase
bucketMap, buckets, definition, extendedBuckets, searchDocument, selection
-
-
Constructor Summary
Constructors Constructor Description MultiBucketAggregate(AggregateDefinition definition, DocumentModel searchDocument)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
parseAggregation(org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation aggregation)
Extract the aggregation from the Elasticsearch responseabstract void
parseEsBuckets(Collection<? extends org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
Extract the buckets from the Elasticsearch response-
Methods inherited from class org.nuxeo.elasticsearch.aggregate.AggregateEsBase
getAggSize, getEsAggregate, getEsFilter, getField, getXPathField
-
Methods inherited from class org.nuxeo.ecm.platform.query.core.AggregateBase
getBucket, getBucketMap, getBuckets, getDateRanges, getExtendedBuckets, getId, getProperties, getRanges, getSearchDocument, getSelection, getType, hasBucket, resetSelection, setBuckets, setSelection, toString
-
-
-
-
Constructor Detail
-
MultiBucketAggregate
public MultiBucketAggregate(AggregateDefinition definition, DocumentModel searchDocument)
-
-
Method Detail
-
parseAggregation
public void parseAggregation(org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation aggregation)
Description copied from class:AggregateEsBase
Extract the aggregation from the Elasticsearch response- Specified by:
parseAggregation
in classAggregateEsBase<org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation,B extends Bucket>
-
parseEsBuckets
public abstract void parseEsBuckets(Collection<? extends org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
Extract the buckets from the Elasticsearch response
-
-