Enum Class AggregationType

java.lang.Object
java.lang.Enum<AggregationType>
org.hisp.dhis.model.AggregationType
All Implemented Interfaces:
Serializable, Comparable<AggregationType>, Constable

public enum AggregationType extends Enum<AggregationType>
Enumeration for aggregation type.
  • Enum Constant Details

    • SUM

      public static final AggregationType SUM
      Sum of values.
    • AVERAGE

      public static final AggregationType AVERAGE
      Average of values.
    • AVERAGE_SUM_ORG_UNIT

      public static final AggregationType AVERAGE_SUM_ORG_UNIT
      Average of sums across organizational units.
    • LAST

      public static final AggregationType LAST
      Last value in the set.
    • LAST_AVERAGE_ORG_UNIT

      public static final AggregationType LAST_AVERAGE_ORG_UNIT
      Last average calculated for each organizational unit.
    • LAST_LAST_ORG_UNIT

      public static final AggregationType LAST_LAST_ORG_UNIT
      Last value for each organizational unit.
    • LAST_IN_PERIOD

      public static final AggregationType LAST_IN_PERIOD
      Last value within a specified period.
    • LAST_IN_PERIOD_AVERAGE_ORG_UNIT

      public static final AggregationType LAST_IN_PERIOD_AVERAGE_ORG_UNIT
      Average of the last values within each organizational unit in a specified period.
    • FIRST

      public static final AggregationType FIRST
      First value in the set.
    • FIRST_AVERAGE_ORG_UNIT

      public static final AggregationType FIRST_AVERAGE_ORG_UNIT
      First average calculated for each organizational unit.
    • FIRST_FIRST_ORG_UNIT

      public static final AggregationType FIRST_FIRST_ORG_UNIT
      First value for each organizational unit.
    • COUNT

      public static final AggregationType COUNT
      Count of values.
    • STDDEV

      public static final AggregationType STDDEV
      Standard deviation of values.
    • VARIANCE

      public static final AggregationType VARIANCE
      Variance of values.
    • MIN

      public static final AggregationType MIN
      Minimum value in the set.
    • MAX

      public static final AggregationType MAX
      Maximum value in the set.
    • MIN_SUM_ORG_UNIT

      public static final AggregationType MIN_SUM_ORG_UNIT
      Minimum of sums across organizational units.
    • MAX_SUM_ORG_UNIT

      public static final AggregationType MAX_SUM_ORG_UNIT
      Maximum of sums across organizational units.
    • NONE

      public static final AggregationType NONE
      No aggregation.
    • CUSTOM

      public static final AggregationType CUSTOM
      Custom aggregation, defined elsewhere.
    • DEFAULT

      public static final AggregationType DEFAULT
      Default aggregation, specifics depend on context.
  • Field Details

    • AVERAGE_TYPES

      public static final Set<AggregationType> AVERAGE_TYPES
      Average aggregation types.
    • LAST_TYPES

      public static final Set<AggregationType> LAST_TYPES
      Last aggregation types.
  • Method Details

    • values

      public static AggregationType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AggregationType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isAverage

      public boolean isAverage()
      Indicates whether the aggregation type is average.
      Returns:
      true if average.