Package org.nuxeo.ecm.platform.query.api
Interface Aggregate<B extends Bucket>
-
- All Known Implementing Classes:
AggregateBase,AggregateEsBase,DateHistogramAggregate,DateRangeAggregate,HistogramAggregate,MissingAggregate,MultiBucketAggregate,NativeEsAggregate,RangeAggregate,SignificantTermAggregate,SingleBucketAggregate,SingleValueMetricAggregate,TermAggregate
public interface Aggregate<B extends Bucket>
- Since:
- 6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BucketgetBucket(String key)List<B>getBuckets()The aggregate results.List<AggregateRangeDateDefinition>getDateRanges()Date Range definition for aggregate of type date range.List<Bucket>getExtendedBuckets()The regular list of buckets plus buckets with doc count at 0 for selected buckets which are not returned from es post filtering.StringgetField()Nuxeo field to aggregate.StringgetId()The aggregate identifier.Map<String,String>getProperties()Properties of the aggregate.List<AggregateRangeDefinition>getRanges()Range definition for aggregate of type range.List<String>getSelection()The selection filter that is going to be applied to the main query as a post filter.StringgetType()Type of aggregation.StringgetXPathField()Gets the field name as defined in Nuxeo.booleanhasBucket(String key)voidresetSelection()voidsetBuckets(List<B> buckets)voidsetSelection(List<String> selection)
-
-
-
Method Detail
-
getProperties
Map<String,String> 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
List<String> getSelection()
The selection filter that is going to be applied to the main query as a post filter.
-
setSelection
void setSelection(List<String> selection)
-
getBuckets
List<B> getBuckets()
The aggregate results.
-
setBuckets
void setBuckets(List<B> buckets)
-
resetSelection
void resetSelection()
-
getExtendedBuckets
List<Bucket> 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
String getXPathField()
Gets the field name as defined in Nuxeo.In Nuxeo the separator for a complex type is the `/` character, in a case where our
Aggregateimplementation defines a field as `file:content.mime-type`, this method should return `file:content/mime-type`.- Since:
- 11.1
-
-