public abstract class ParsedSingleBucketAggregation extends ParsedAggregation implements SingleBucketAggregation
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected Aggregations |
aggregations |
metadata
TYPED_KEYS_DELIMITER
EMPTY_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, toXContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName, getType
isFragment, toXContent
protected Aggregations aggregations
public long getDocCount()
getDocCount
in interface SingleBucketAggregation
protected void setDocCount(long docCount)
public Aggregations getAggregations()
getAggregations
in interface SingleBucketAggregation
getAggregations
in interface HasAggregations
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ParsedAggregation
java.io.IOException
protected static <T extends ParsedSingleBucketAggregation> T parseXContent(XContentParser parser, T aggregation, java.lang.String name) throws java.io.IOException
java.io.IOException