public static class InternalHistogram.Bucket extends Object implements Histogram.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>| Modifier and Type | Field and Description |
|---|---|
protected ValueFormatter |
formatter |
| Constructor and Description |
|---|
Bucket(long key,
long docCount,
ValueFormatter formatter,
InternalAggregations aggregations) |
| Modifier and Type | Method and Description |
|---|---|
Aggregations |
getAggregations() |
long |
getDocCount() |
protected org.elasticsearch.search.aggregations.bucket.histogram.InternalHistogram.Factory<?> |
getFactory() |
String |
getKey() |
Number |
getKeyAsNumber() |
Text |
getKeyAsText() |
@Nullable protected final transient ValueFormatter formatter
public Bucket(long key,
long docCount,
@Nullable
ValueFormatter formatter,
InternalAggregations aggregations)
protected org.elasticsearch.search.aggregations.bucket.histogram.InternalHistogram.Factory<?> getFactory()
public String getKey()
getKey in interface MultiBucketsAggregation.Bucketpublic Text getKeyAsText()
getKeyAsText in interface MultiBucketsAggregation.Bucketpublic Number getKeyAsNumber()
getKeyAsNumber in interface Histogram.Bucketpublic long getDocCount()
getDocCount in interface MultiBucketsAggregation.Bucketpublic Aggregations getAggregations()
getAggregations in interface MultiBucketsAggregation.BucketgetAggregations in interface HasAggregationsCopyright © 2009–2016. All rights reserved.