public static class ParsedRange.ParsedBucket extends ParsedMultiBucketAggregation.ParsedBucket implements Range.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected double |
from |
protected java.lang.String |
fromAsString |
protected java.lang.String |
key |
protected double |
to |
protected java.lang.String |
toAsString |
EMPTY_PARAMS| Constructor and Description |
|---|
ParsedBucket() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getFrom() |
java.lang.String |
getFromAsString() |
java.lang.String |
getKey() |
java.lang.String |
getKeyAsString() |
java.lang.Object |
getTo() |
java.lang.String |
getToAsString() |
protected static <B extends ParsedRange.ParsedBucket> |
parseRangeBucketXContent(XContentParser parser,
java.util.function.Supplier<B> bucketSupplier,
boolean keyed) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
getAggregations, getDocCount, isKeyed, keyToXContent, parseXContent, setAggregations, setDocCount, setKeyAsString, setKeyedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAggregations, getDocCountisFragmentprotected java.lang.String key
protected double from
protected java.lang.String fromAsString
protected double to
protected java.lang.String toAsString
public java.lang.String getKey()
getKey in interface MultiBucketsAggregation.Bucketpublic java.lang.String getKeyAsString()
getKeyAsString in interface MultiBucketsAggregation.BucketgetKeyAsString in class ParsedMultiBucketAggregation.ParsedBucketpublic java.lang.Object getFrom()
getFrom in interface Range.Bucketpublic java.lang.String getFromAsString()
getFromAsString in interface Range.Bucketpublic java.lang.Object getTo()
getTo in interface Range.Bucketpublic java.lang.String getToAsString()
getToAsString in interface Range.Bucketpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContenttoXContent in class ParsedMultiBucketAggregation.ParsedBucketjava.io.IOExceptionprotected static <B extends ParsedRange.ParsedBucket> B parseRangeBucketXContent(XContentParser parser, java.util.function.Supplier<B> bucketSupplier, boolean keyed) throws java.io.IOException
java.io.IOException