Interface Stats
-
- All Superinterfaces:
Aggregation,NumericMetricsAggregation,NumericMetricsAggregation.MultiValue,ToXContent,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
ToXContent.DelegatingMapParams, ToXContent.MapParams, 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 doublegetAvg()java.lang.StringgetAvgAsString()longgetCount()doublegetMax()java.lang.StringgetMaxAsString()doublegetMin()java.lang.StringgetMinAsString()doublegetSum()java.lang.StringgetSumAsString()-
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
-
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.
-
-