public abstract class ParsedSingleBucketAggregation extends ParsedAggregation implements SingleBucketAggregation
Aggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
protected Aggregations |
aggregations |
metadataTYPED_KEYS_DELIMITEREMPTY_PARAMS| Constructor and Description |
|---|
ParsedSingleBucketAggregation() |
| Modifier and Type | Method and Description |
|---|---|
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
Aggregations |
getAggregations() |
long |
getDocCount() |
protected static <T extends ParsedSingleBucketAggregation> |
parseXContent(XContentParser parser,
T aggregation,
java.lang.String name) |
protected void |
setDocCount(long docCount) |
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetaData, getName, getTypeisFragmenttoXContentprotected Aggregations aggregations
public long getDocCount()
getDocCount in interface SingleBucketAggregationprotected void setDocCount(long docCount)
public Aggregations getAggregations()
getAggregations in interface SingleBucketAggregationgetAggregations in interface HasAggregationspublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class ParsedAggregationjava.io.IOExceptionprotected static <T extends ParsedSingleBucketAggregation> T parseXContent(XContentParser parser, T aggregation, java.lang.String name) throws java.io.IOException
java.io.IOException