Class DateRangeAggregate
java.lang.Object
org.nuxeo.ecm.platform.query.core.AggregateBase<B>
org.nuxeo.elasticsearch.aggregate.AggregateEsBase<org.opensearch.search.aggregations.bucket.MultiBucketsAggregation,B>
org.nuxeo.elasticsearch.aggregate.MultiBucketAggregate<BucketRangeDate>
org.nuxeo.elasticsearch.aggregate.DateRangeAggregate
- All Implemented Interfaces:
Aggregate<BucketRangeDate>
- Since:
- 6.0
-
Nested Class Summary
-
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
ConstructorDescriptionDateRangeAggregate
(AggregateDefinition definition, DocumentModel searchDocument) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder
Return the Elasticsearch aggregate builderorg.opensearch.index.query.QueryBuilder
Return the Elasticsearch aggregate filter corresponding to the selectionvoid
parseEsBuckets
(Collection<? extends org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets) Extract the buckets from the Elasticsearch responseMethods inherited from class org.nuxeo.elasticsearch.aggregate.MultiBucketAggregate
parseAggregation
Methods inherited from class org.nuxeo.elasticsearch.aggregate.AggregateEsBase
getAggSize, 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 Details
-
DateRangeAggregate
-
-
Method Details
-
getEsAggregate
public org.opensearch.search.aggregations.bucket.range.DateRangeAggregationBuilder getEsAggregate()Description copied from class:AggregateEsBase
Return the Elasticsearch aggregate builder- Specified by:
getEsAggregate
in classAggregateEsBase<org.opensearch.search.aggregations.bucket.MultiBucketsAggregation,
BucketRangeDate>
-
getEsFilter
public org.opensearch.index.query.QueryBuilder getEsFilter()Description copied from class:AggregateEsBase
Return the Elasticsearch aggregate filter corresponding to the selection- Specified by:
getEsFilter
in classAggregateEsBase<org.opensearch.search.aggregations.bucket.MultiBucketsAggregation,
BucketRangeDate>
-
parseEsBuckets
public void parseEsBuckets(Collection<? extends org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets) Description copied from class:MultiBucketAggregate
Extract the buckets from the Elasticsearch response- Specified by:
parseEsBuckets
in classMultiBucketAggregate<BucketRangeDate>
-