Class AvgAggregation

java.lang.Object
com.atlassian.jira.search.aggregation.metric.avg.AvgAggregation
All Implemented Interfaces:
Aggregation, MetricAggregation

public class AvgAggregation extends Object implements MetricAggregation
Aggregation that computes the average of numeric values for a field across all matching documents.

This aggregation can be used with numeric fields only. See implementations of NumericField.

Since:
10.5
See Also:
  • Constructor Details

    • AvgAggregation

      public AvgAggregation(String field)
  • Method Details

    • getField

      public String getField()
      Returns:
      The name of the field for which the average value will be calculated