ToXContent
, ToXContentFragment
, Aggregation
, Avg
, NumericMetricsAggregation
, NumericMetricsAggregation.SingleValue
public class ParsedAvg extends ParsedSingleValueNumericMetricsAggregation implements Avg
Aggregation.CommonFields
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TYPED_KEYS_DELIMITER
metadata
value, valueAsString
EMPTY_PARAMS
Constructor | Description |
---|---|
ParsedAvg() |
Modifier and Type | Method | Description |
---|---|---|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
|
static ParsedAvg |
fromXContent(XContentParser parser,
java.lang.String name) |
|
java.lang.String |
getType() |
|
double |
getValue() |
The average value.
|
getMetaData, getName
getValueAsString, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
declareSingleValueFields, getValueAsString, setValue, setValueAsString, value
toXContent
isFragment
public double getValue()
Avg
public java.lang.String getType()
getType
in interface Aggregation
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ParsedAggregation
java.io.IOException
public static ParsedAvg fromXContent(XContentParser parser, java.lang.String name)