Class HistogramAggregate
- java.lang.Object
-
- org.nuxeo.ecm.platform.query.core.AggregateBase<B>
-
- org.nuxeo.elasticsearch.aggregate.AggregateEsBase<org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation,B>
-
- org.nuxeo.elasticsearch.aggregate.MultiBucketAggregate<BucketRange>
-
- org.nuxeo.elasticsearch.aggregate.HistogramAggregate
-
- All Implemented Interfaces:
Aggregate<BucketRange>
public class HistogramAggregate extends MultiBucketAggregate<BucketRange>
- Since:
- 6.0
-
-
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
Constructors Constructor Description HistogramAggregate(AggregateDefinition definition, DocumentModel searchDocument)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder
getEsAggregate()
Return the Elasticsearch aggregate builderorg.elasticsearch.index.query.QueryBuilder
getEsFilter()
Return the Elasticsearch aggregate filter corresponding to the selectionint
getInterval()
void
parseEsBuckets(Collection<? extends org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
Extract the buckets from the Elasticsearch responseprotected int
parseInt(String key)
-
Methods 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 Detail
-
HistogramAggregate
public HistogramAggregate(AggregateDefinition definition, DocumentModel searchDocument)
-
-
Method Detail
-
getEsAggregate
public org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder getEsAggregate()
Description copied from class:AggregateEsBase
Return the Elasticsearch aggregate builder- Specified by:
getEsAggregate
in classAggregateEsBase<org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation,BucketRange>
-
getEsFilter
public org.elasticsearch.index.query.QueryBuilder getEsFilter()
Description copied from class:AggregateEsBase
Return the Elasticsearch aggregate filter corresponding to the selection- Specified by:
getEsFilter
in classAggregateEsBase<org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation,BucketRange>
-
parseEsBuckets
public void parseEsBuckets(Collection<? extends org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
Description copied from class:MultiBucketAggregate
Extract the buckets from the Elasticsearch response- Specified by:
parseEsBuckets
in classMultiBucketAggregate<BucketRange>
-
getInterval
public int getInterval()
-
parseInt
protected int parseInt(String key)
-
-