public class ParsedAvg extends ParsedSingleValueNumericMetricsAggregation implements Avg
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
Aggregation.CommonFields
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
value, valueAsString
metadata
TYPED_KEYS_DELIMITER
EMPTY_PARAMS
Constructor and Description |
---|
ParsedAvg() |
Modifier and Type | Method and 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.
|
declareSingleValueFields, getValueAsString, setValue, setValueAsString, value
declareAggregationFields, getMetaData, getName, parseDouble, setName, toXContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValueAsString, value
getMetaData, getName
isFragment, 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)