public abstract static class ParsedMultiBucketAggregation.ParsedBucket extends java.lang.Object implements MultiBucketsAggregation.Bucket
MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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, wait
getKey
isFragment
protected void setKeyAsString(java.lang.String keyAsString)
public java.lang.String getKeyAsString()
getKeyAsString
in interface MultiBucketsAggregation.Bucket
protected void setDocCount(long docCount)
public long getDocCount()
getDocCount
in interface MultiBucketsAggregation.Bucket
public void setKeyed(boolean keyed)
protected boolean isKeyed()
protected void setAggregations(Aggregations aggregations)
public Aggregations getAggregations()
getAggregations
in interface MultiBucketsAggregation.Bucket
getAggregations
in interface HasAggregations
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
protected XContentBuilder keyToXContent(XContentBuilder builder) throws java.io.IOException
java.io.IOException
protected 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