ToXContent
, ToXContentFragment
, Aggregation
, NumericMetricsAggregation
, NumericMetricsAggregation.SingleValue
, Derivative
, SimpleValue
public class ParsedDerivative extends ParsedSimpleValue implements Derivative
Aggregation.CommonFields
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
TYPED_KEYS_DELIMITER
metadata
value, valueAsString
EMPTY_PARAMS
Constructor | Description |
---|---|
ParsedDerivative() |
Modifier and Type | Method | Description |
---|---|---|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
|
static ParsedDerivative |
fromXContent(XContentParser parser,
java.lang.String name) |
|
java.lang.String |
getType() |
|
double |
normalizedValue() |
Returns the normalized 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 normalizedValue()
Derivative
NumericMetricsAggregation.SingleValue.value()
normalizedValue
in interface Derivative
public java.lang.String getType()
getType
in interface Aggregation
getType
in class ParsedSimpleValue
public static ParsedDerivative fromXContent(XContentParser parser, java.lang.String name)
protected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class ParsedSimpleValue
java.io.IOException