public class DateHistogramAggregate extends AggregateEsBase<BucketRangeDate>
ES_MUTLI_LEVEL_SEP, XPATH_SEP
Constructor and Description |
---|
DateHistogramAggregate(AggregateDefinition definition,
DocumentModel searchDocument) |
Modifier and Type | Method and Description |
---|---|
org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramBuilder |
getEsAggregate()
Return the Elasticsearch aggregate builder
|
org.elasticsearch.index.query.FilterBuilder |
getEsFilter()
Return the Elasticsearch aggregate filter corresponding to the selection
|
long |
getIntervalInMillis() |
void |
parseEsBuckets(Collection<? extends org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
Extract the buckets from the Elasticsearch response
|
getField
getBucket, getBucketMap, getBuckets, getDateRanges, getExtendedBuckets, getId, getProperties, getRanges, getSearchDocument, getSelection, getType, hasBucket, resetSelection, setBuckets, setSelection, toString
public DateHistogramAggregate(AggregateDefinition definition, DocumentModel searchDocument)
public org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramBuilder getEsAggregate()
AggregateEsBase
getEsAggregate
in class AggregateEsBase<BucketRangeDate>
public org.elasticsearch.index.query.FilterBuilder getEsFilter()
AggregateEsBase
getEsFilter
in class AggregateEsBase<BucketRangeDate>
public void parseEsBuckets(Collection<? extends org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
AggregateEsBase
parseEsBuckets
in class AggregateEsBase<BucketRangeDate>
public long getIntervalInMillis()
Copyright © 2015 Nuxeo SA. All rights reserved.