Class ParsedSingleValueNumericMetricsAggregation
- java.lang.Object
-
- org.elasticsearch.search.aggregations.ParsedAggregation
-
- org.elasticsearch.search.aggregations.metrics.ParsedSingleValueNumericMetricsAggregation
-
- All Implemented Interfaces:
ToXContent,ToXContentFragment,Aggregation,NumericMetricsAggregation,NumericMetricsAggregation.SingleValue
- Direct Known Subclasses:
ParsedAvg,ParsedBucketMetricValue,ParsedMax,ParsedMedianAbsoluteDeviation,ParsedMin,ParsedSimpleValue,ParsedSum,ParsedWeightedAvg
public abstract class ParsedSingleValueNumericMetricsAggregation extends ParsedAggregation implements NumericMetricsAggregation.SingleValue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFields
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregation
NumericMetricsAggregation.MultiValue, NumericMetricsAggregation.SingleValue
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description protected doublevalueprotected java.lang.StringvalueAsString-
Fields inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
metadata
-
Fields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description ParsedSingleValueNumericMetricsAggregation()
-
Method Summary
Modifier and Type Method Description protected static voiddeclareSingleValueFields(ObjectParser<? extends ParsedSingleValueNumericMetricsAggregation,java.lang.Void> objectParser, double defaultNullValue)java.lang.StringgetValueAsString()protected voidsetValue(double value)protected voidsetValueAsString(java.lang.String valueAsString)doublevalue()-
Methods inherited from class org.elasticsearch.search.aggregations.ParsedAggregation
declareAggregationFields, doXContentBody, getMetaData, getName, parseDouble, setName, toXContent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetaData, getName, getType
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Method Detail
-
getValueAsString
public java.lang.String getValueAsString()
- Specified by:
getValueAsStringin interfaceNumericMetricsAggregation.SingleValue
-
value
public double value()
- Specified by:
valuein interfaceNumericMetricsAggregation.SingleValue
-
setValue
protected void setValue(double value)
-
setValueAsString
protected void setValueAsString(java.lang.String valueAsString)
-
declareSingleValueFields
protected static void declareSingleValueFields(ObjectParser<? extends ParsedSingleValueNumericMetricsAggregation,java.lang.Void> objectParser, double defaultNullValue)
-
-