public class HistogramAggregate extends AggregateEsBase<BucketRange>
ES_MUTLI_LEVEL_SEP, XPATH_SEP
bucketMap, buckets, definition, extendedBuckets, searchDocument, selection
Constructor and Description |
---|
HistogramAggregate(AggregateDefinition definition,
DocumentModel searchDocument) |
Modifier and Type | Method and Description |
---|---|
org.elasticsearch.search.aggregations.bucket.histogram.HistogramBuilder |
getEsAggregate()
Return the Elasticsearch aggregate builder
|
org.elasticsearch.index.query.QueryBuilder |
getEsFilter()
Return the Elasticsearch aggregate filter corresponding to the selection
|
int |
getInterval() |
void |
parseEsBuckets(Collection<? extends org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
Extract the buckets from the Elasticsearch response
|
protected int |
parseInt(String key) |
getField
getBucket, getBucketMap, getBuckets, getDateRanges, getExtendedBuckets, getId, getProperties, getRanges, getSearchDocument, getSelection, getType, hasBucket, resetSelection, setBuckets, setSelection, toString
public HistogramAggregate(AggregateDefinition definition, DocumentModel searchDocument)
public org.elasticsearch.search.aggregations.bucket.histogram.HistogramBuilder getEsAggregate()
AggregateEsBase
getEsAggregate
in class AggregateEsBase<BucketRange>
public org.elasticsearch.index.query.QueryBuilder getEsFilter()
AggregateEsBase
getEsFilter
in class AggregateEsBase<BucketRange>
public void parseEsBuckets(Collection<? extends org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> buckets)
AggregateEsBase
parseEsBuckets
in class AggregateEsBase<BucketRange>
public int getInterval()
Copyright © 2017 Nuxeo. All rights reserved.