ToXContent, MultiBucketsAggregation.Bucket, HasAggregationsParsedAdjacencyMatrix.ParsedBucket, ParsedBinaryRange.ParsedBucket, ParsedComposite.ParsedBucket, ParsedDateHistogram.ParsedBucket, ParsedFilters.ParsedBucket, ParsedGeoHashGrid.ParsedBucket, ParsedRange.ParsedBucket, ParsedSignificantTerms.ParsedBucket, ParsedTerms.ParsedBucketpublic abstract static class ParsedMultiBucketAggregation.ParsedBucket extends java.lang.Object implements MultiBucketsAggregation.Bucket
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor | Description |
|---|---|
ParsedBucket() |
| Modifier and Type | Method | 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) |
getKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentprotected 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 HasAggregationsgetAggregations in interface MultiBucketsAggregation.Bucketpublic 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