Class ParsedSingleValueNumericMetricsAggregation
java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.search.aggregations.metrics.ParsedSingleValueNumericMetricsAggregation
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.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
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
declareSingleValueFields(org.elasticsearch.common.xcontent.ObjectParser<? extends ParsedSingleValueNumericMetricsAggregation,Void> objectParser, double defaultNullValue)
protected void
setValue(double value)
protected void
setValueAsString(String valueAsString)
double
value()
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
-
Field Details
-
value
protected double value -
valueAsString
-
-
Constructor Details
-
ParsedSingleValueNumericMetricsAggregation
public ParsedSingleValueNumericMetricsAggregation()
-
-
Method Details
-
getValueAsString
- Specified by:
getValueAsString
in interfaceNumericMetricsAggregation.SingleValue
-
value
public double value()- Specified by:
value
in interfaceNumericMetricsAggregation.SingleValue
-
setValue
protected void setValue(double value) -
setValueAsString
-
declareSingleValueFields
protected static void declareSingleValueFields(org.elasticsearch.common.xcontent.ObjectParser<? extends ParsedSingleValueNumericMetricsAggregation,Void> objectParser, double defaultNullValue)
-