Package org.nuxeo.ecm.platform.query.api
Interface Aggregate<B extends Bucket>
- All Known Implementing Classes:
AggregateAvg
,AggregateBase
,AggregateCardinality
,AggregateCount
,AggregateDateHistogram
,AggregateDateRange
,AggregateHistogram
,AggregateMax
,AggregateMin
,AggregateMissing
,AggregateRange
,AggregateSignificantTerm
,AggregateSum
,AggregateTerm
public interface Aggregate<B extends Bucket>
- Since:
- 6.0
-
Method Summary
Modifier and TypeMethodDescriptionThe aggregate results.Date Range definition for aggregate of type date range.The regular list of buckets plus buckets with doc count at 0 for selected buckets which are not returned from es post filtering.getField()
Nuxeo field to aggregate.getId()
The aggregate identifier.Properties of the aggregate.Range definition for aggregate of type range.The selection filter that is going to be applied to the main query as a post filter.getType()
Type of aggregation.default String
Deprecated, for removal: This API element is subject to removal in a future version.boolean
void
void
setBuckets
(List<B> buckets) void
setSelection
(List<String> selection)
-
Method Details
-
getId
String getId()The aggregate identifier. -
getType
String getType()Type of aggregation. -
getField
String getField()Nuxeo field to aggregate. -
getProperties
Properties of the aggregate. -
getRanges
List<AggregateRangeDefinition> getRanges()Range definition for aggregate of type range. -
getDateRanges
List<AggregateRangeDateDefinition> getDateRanges()Date Range definition for aggregate of type date range. -
getSelection
The selection filter that is going to be applied to the main query as a post filter. -
setSelection
-
getBuckets
The aggregate results. -
setBuckets
-
getBucket
-
hasBucket
-
resetSelection
void resetSelection() -
getExtendedBuckets
The regular list of buckets plus buckets with doc count at 0 for selected buckets which are not returned from es post filtering. -
getXPathField
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, since the SearchService introduction, aggregate fields are always in Nuxeo format, usegetField()
insteadGets the field name as defined in Nuxeo.In Nuxeo the separator for a complex type is the `/` character, in a case where our
Aggregate
implementation defines a field as `file:content.mime-type`, this method should return `file:content/mime-type`.- Since:
- 11.1
-
getField()
instead