Class AggregateBase<B extends Bucket>
java.lang.Object
org.nuxeo.ecm.platform.query.core.AggregateBase<B>
- All Implemented Interfaces:
Aggregate<B>
- Direct Known Subclasses:
AggregateAvg,AggregateCardinality,AggregateCount,AggregateDateHistogram,AggregateDateRange,AggregateHistogram,AggregateMax,AggregateMin,AggregateMissing,AggregateRange,AggregateSignificantTerm,AggregateSum,AggregateTerm
- Since:
- 6.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AggregateDefinitionprotected final DocumentModel -
Constructor Summary
Constructors -
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.booleanvoidvoidsetBuckets(List<B> buckets) voidsetSelection(List<String> selection) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.platform.query.api.Aggregate
getXPathField
-
Field Details
-
definition
-
searchDocument
-
selection
-
buckets
-
extendedBuckets
-
bucketMap
-
-
Constructor Details
-
AggregateBase
-
-
Method Details
-
getId
Description copied from interface:AggregateThe aggregate identifier. -
getType
Description copied from interface:AggregateType of aggregation. -
getField
Description copied from interface:AggregateNuxeo field to aggregate. -
getProperties
Description copied from interface:AggregateProperties of the aggregate.- Specified by:
getPropertiesin interfaceAggregate<B extends Bucket>
-
getRanges
Description copied from interface:AggregateRange definition for aggregate of type range. -
getDateRanges
Description copied from interface:AggregateDate Range definition for aggregate of type date range.- Specified by:
getDateRangesin interfaceAggregate<B extends Bucket>
-
getSelection
Description copied from interface:AggregateThe selection filter that is going to be applied to the main query as a post filter.- Specified by:
getSelectionin interfaceAggregate<B extends Bucket>
-
setSelection
- Specified by:
setSelectionin interfaceAggregate<B extends Bucket>
-
getBuckets
Description copied from interface:AggregateThe aggregate results.- Specified by:
getBucketsin interfaceAggregate<B extends Bucket>
-
getExtendedBuckets
Description copied from interface:AggregateThe regular list of buckets plus buckets with doc count at 0 for selected buckets which are not returned from es post filtering.- Specified by:
getExtendedBucketsin interfaceAggregate<B extends Bucket>
-
setBuckets
- Specified by:
setBucketsin interfaceAggregate<B extends Bucket>
-
getSearchDocument
-
toString
-
hasBucket
-
getBucket
-
getBucketMap
-
resetSelection
public void resetSelection()- Specified by:
resetSelectionin interfaceAggregate<B extends Bucket>
-