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, setKeyed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAggregations, getDocCount
isFragment
protected 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.Bucket
public java.lang.String getKeyAsString()
getKeyAsString
in interface MultiBucketsAggregation.Bucket
getKeyAsString
in class ParsedMultiBucketAggregation.ParsedBucket
public java.lang.Object getFrom()
getFrom
in interface Range.Bucket
public java.lang.String getFromAsString()
getFromAsString
in interface Range.Bucket
public java.lang.Object getTo()
getTo
in interface Range.Bucket
public java.lang.String getToAsString()
getToAsString
in interface Range.Bucket
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
toXContent
in class ParsedMultiBucketAggregation.ParsedBucket
java.io.IOException
protected static <B extends ParsedRange.ParsedBucket> B parseRangeBucketXContent(XContentParser parser, java.util.function.Supplier<B> bucketSupplier, boolean keyed) throws java.io.IOException
java.io.IOException