ToXContent
, ToXContentFragment
, Aggregation
, SingleBucketAggregation
, HasAggregations
ParsedFilter
, ParsedGlobal
, ParsedMissing
, ParsedNested
, ParsedReverseNested
, ParsedSampler
public abstract class ParsedSingleBucketAggregation extends ParsedAggregation implements SingleBucketAggregation
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field | Description |
---|---|---|
protected Aggregations |
aggregations |
TYPED_KEYS_DELIMITER
metadata
EMPTY_PARAMS
Constructor | Description |
---|---|
ParsedSingleBucketAggregation() |
Modifier and Type | Method | 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) |
getMetaData, getName, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
toXContent
isFragment
protected Aggregations aggregations
public long getDocCount()
getDocCount
in interface SingleBucketAggregation
protected void setDocCount(long docCount)
public Aggregations getAggregations()
getAggregations
in interface HasAggregations
getAggregations
in interface SingleBucketAggregation
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