public class DateRangeAggregate extends MultiBucketAggregate<BucketRangeDate>
Modifier and Type | Class and Description |
---|---|
protected class |
DateRangeAggregate.BucketRangeDateComparator |
ES_MUTLI_LEVEL_SEP, MAX_AGG_SIZE, XPATH_SEP
bucketMap, buckets, definition, extendedBuckets, searchDocument, selection
Constructor and Description |
---|
DateRangeAggregate(AggregateDefinition definition,
DocumentModel searchDocument) |
Modifier and Type | Method and Description |
---|---|
org.elasticsearch.search.aggregations.bucket.range.DateRangeAggregationBuilder |
getEsAggregate()
Return the Elasticsearch aggregate builder
|
org.elasticsearch.index.query.QueryBuilder |
getEsFilter()
Return the Elasticsearch aggregate filter corresponding to the selection
|
void |
parseEsBuckets(Collection<? extends org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
Extract the buckets from the Elasticsearch response
|
parseAggregation
getAggSize, getField
getBucket, getBucketMap, getBuckets, getDateRanges, getExtendedBuckets, getId, getProperties, getRanges, getSearchDocument, getSelection, getType, hasBucket, resetSelection, setBuckets, setSelection, toString
public DateRangeAggregate(AggregateDefinition definition, DocumentModel searchDocument)
public org.elasticsearch.search.aggregations.bucket.range.DateRangeAggregationBuilder getEsAggregate()
AggregateEsBase
getEsAggregate
in class AggregateEsBase<org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation,BucketRangeDate>
public org.elasticsearch.index.query.QueryBuilder getEsFilter()
AggregateEsBase
getEsFilter
in class AggregateEsBase<org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation,BucketRangeDate>
public void parseEsBuckets(Collection<? extends org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
MultiBucketAggregate
parseEsBuckets
in class MultiBucketAggregate<BucketRangeDate>
Copyright © 2018 Nuxeo. All rights reserved.