public abstract static class ParsedMultiBucketAggregation.ParsedBucket extends java.lang.Object implements MultiBucketsAggregation.Bucket
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
ParsedBucket() |
| Modifier and Type | Method and Description |
|---|---|
Aggregations |
getAggregations() |
long |
getDocCount() |
java.lang.String |
getKeyAsString() |
protected boolean |
isKeyed() |
protected XContentBuilder |
keyToXContent(XContentBuilder builder) |
protected static <B extends ParsedMultiBucketAggregation.ParsedBucket> |
parseXContent(XContentParser parser,
boolean keyed,
java.util.function.Supplier<B> bucketSupplier,
CheckedBiConsumer<XContentParser,B,java.io.IOException> keyConsumer) |
protected void |
setAggregations(Aggregations aggregations) |
protected void |
setDocCount(long docCount) |
protected void |
setKeyAsString(java.lang.String keyAsString) |
void |
setKeyed(boolean keyed) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyisFragmentprotected void setKeyAsString(java.lang.String keyAsString)
public java.lang.String getKeyAsString()
getKeyAsString in interface MultiBucketsAggregation.Bucketprotected void setDocCount(long docCount)
public long getDocCount()
getDocCount in interface MultiBucketsAggregation.Bucketpublic void setKeyed(boolean keyed)
protected boolean isKeyed()
protected void setAggregations(Aggregations aggregations)
public Aggregations getAggregations()
getAggregations in interface MultiBucketsAggregation.BucketgetAggregations in interface HasAggregationspublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionprotected XContentBuilder keyToXContent(XContentBuilder builder) throws java.io.IOException
java.io.IOExceptionprotected static <B extends ParsedMultiBucketAggregation.ParsedBucket> B parseXContent(XContentParser parser, boolean keyed, java.util.function.Supplier<B> bucketSupplier, CheckedBiConsumer<XContentParser,B,java.io.IOException> keyConsumer) throws java.io.IOException
java.io.IOException