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)
  • 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.