Class AggregateBase<B extends Bucket>
java.lang.Object
org.nuxeo.ecm.platform.query.core.AggregateBase<B>
- All Implemented Interfaces:
Aggregate<B>
- Direct Known Subclasses:
AggregateEsBase
- Since:
- 6.0
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AggregateDefinition
protected final DocumentModel
-
Constructor Summary
-
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.Gets the field name as defined in Nuxeo.boolean
void
void
setBuckets
(List<B> buckets) void
setSelection
(List<String> selection) toString()
-
Field Details
-
definition
-
searchDocument
-
selection
-
buckets
-
extendedBuckets
-
bucketMap
-
-
Constructor Details
-
AggregateBase
-
-
Method Details
-
getId
Description copied from interface:Aggregate
The aggregate identifier. -
getType
Description copied from interface:Aggregate
Type of aggregation. -
getField
Description copied from interface:Aggregate
Nuxeo field to aggregate. -
getProperties
Description copied from interface:Aggregate
Properties of the aggregate.- Specified by:
getProperties
in interfaceAggregate<B extends Bucket>
-
getRanges
Description copied from interface:Aggregate
Range definition for aggregate of type range. -
getDateRanges
Description copied from interface:Aggregate
Date Range definition for aggregate of type date range.- Specified by:
getDateRanges
in interfaceAggregate<B extends Bucket>
-
getSelection
Description copied from interface:Aggregate
The selection filter that is going to be applied to the main query as a post filter.- Specified by:
getSelection
in interfaceAggregate<B extends Bucket>
-
setSelection
- Specified by:
setSelection
in interfaceAggregate<B extends Bucket>
-
getBuckets
Description copied from interface:Aggregate
The aggregate results.- Specified by:
getBuckets
in interfaceAggregate<B extends Bucket>
-
getExtendedBuckets
Description copied from interface:Aggregate
The regular list of buckets plus buckets with doc count at 0 for selected buckets which are not returned from es post filtering.- Specified by:
getExtendedBuckets
in interfaceAggregate<B extends Bucket>
-
setBuckets
- Specified by:
setBuckets
in interfaceAggregate<B extends Bucket>
-
getSearchDocument
-
toString
-
hasBucket
-
getBucket
-
getBucketMap
-
resetSelection
public void resetSelection()- Specified by:
resetSelection
in interfaceAggregate<B extends Bucket>
-
getXPathField
Description copied from interface:Aggregate
Gets 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`.- Specified by:
getXPathField
in interfaceAggregate<B extends Bucket>
-