public static class InternalRange.Bucket extends Object implements Range.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>| Constructor and Description |
|---|
Bucket(String key,
double from,
double to,
long docCount,
InternalAggregations aggregations,
ValueFormatter formatter) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
generateKey(double from,
double to,
ValueFormatter formatter) |
Aggregations |
getAggregations() |
long |
getDocCount() |
protected InternalRange.Factory<? extends InternalRange.Bucket,?> |
getFactory() |
Number |
getFrom() |
String |
getFromAsString() |
String |
getKey() |
Text |
getKeyAsText() |
Number |
getTo() |
String |
getToAsString() |
public Bucket(String key, double from, double to, long docCount, InternalAggregations aggregations, @Nullable ValueFormatter formatter)
public String getKey()
getKey in interface MultiBucketsAggregation.Bucketpublic Text getKeyAsText()
getKeyAsText in interface MultiBucketsAggregation.Bucketpublic Number getFrom()
getFrom in interface Range.Bucketpublic Number getTo()
getTo in interface Range.Bucketpublic String getFromAsString()
getFromAsString in interface Range.Bucketpublic String getToAsString()
getToAsString in interface Range.Bucketpublic long getDocCount()
getDocCount in interface MultiBucketsAggregation.Bucketpublic Aggregations getAggregations()
getAggregations in interface MultiBucketsAggregation.BucketgetAggregations in interface HasAggregationsprotected InternalRange.Factory<? extends InternalRange.Bucket,?> getFactory()
protected String generateKey(double from, double to, @Nullable ValueFormatter formatter)
Copyright © 2009–2016. All rights reserved.