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.Bucket
public Text getKeyAsText()
getKeyAsText
in interface MultiBucketsAggregation.Bucket
public Number getKeyAsNumber()
getKeyAsNumber
in interface Histogram.Bucket
public long getDocCount()
getDocCount
in interface MultiBucketsAggregation.Bucket
public Aggregations getAggregations()
getAggregations
in interface MultiBucketsAggregation.Bucket
getAggregations
in interface HasAggregations
Copyright © 2009–2015. All rights reserved.