Interface Stats
- All Superinterfaces:
Aggregation
,NumericMetricsAggregation
,NumericMetricsAggregation.MultiValue
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
- All Known Subinterfaces:
ExtendedStats
,ExtendedStatsBucket
,StatsBucket
- All Known Implementing Classes:
InternalExtendedStats
,InternalExtendedStatsBucket
,InternalStats
,InternalStatsBucket
,ParsedExtendedStats
,ParsedExtendedStatsBucket
,ParsedStats
,ParsedStatsBucket
Statistics over a set of values (either aggregated over field data or scripts)
-
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 interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Methods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetadata, getName, getType
Methods inherited from interface org.elasticsearch.search.aggregations.metrics.NumericMetricsAggregation.MultiValue
value, valueNames
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Method Details
-
getCount
long getCount()- Returns:
- The number of values that were aggregated.
-
getMin
double getMin()- Returns:
- The minimum value of all aggregated values.
-
getMax
double getMax()- Returns:
- The maximum value of all aggregated values.
-
getAvg
double getAvg()- Returns:
- The avg value over all aggregated values.
-
getSum
double getSum()- Returns:
- The sum of aggregated values.
-
getMinAsString
String getMinAsString()- Returns:
- The minimum value of all aggregated values as a String.
-
getMaxAsString
String getMaxAsString()- Returns:
- The maximum value of all aggregated values as a String.
-
getAvgAsString
String getAvgAsString()- Returns:
- The avg value over all aggregated values as a String.
-
getSumAsString
String getSumAsString()- Returns:
- The sum of aggregated values as a String.
-