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
public interface Stats extends NumericMetricsAggregation.MultiValue
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
Modifier and Type Method Description double
getAvg()
java.lang.String
getAvgAsString()
long
getCount()
double
getMax()
java.lang.String
getMaxAsString()
double
getMin()
java.lang.String
getMinAsString()
double
getSum()
java.lang.String
getSumAsString()
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
java.lang.String getMinAsString()- Returns:
- The minimum value of all aggregated values as a String.
-
getMaxAsString
java.lang.String getMaxAsString()- Returns:
- The maximum value of all aggregated values as a String.
-
getAvgAsString
java.lang.String getAvgAsString()- Returns:
- The avg value over all aggregated values as a String.
-
getSumAsString
java.lang.String getSumAsString()- Returns:
- The sum of aggregated values as a String.
-