public enum AggregationFunction extends Enum<AggregationFunction>
Enum Constant and Description |
---|
AVERAGE
calculate the average of the field values.
|
COUNT
calculate the number of records
|
MAX
calculate the maximum value of the field.
|
MIN
calculate the minimum value of the field.
|
SUM
calculate the total of the field values.
|
Modifier and Type | Method and Description |
---|---|
static AggregationFunction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AggregationFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AggregationFunction COUNT
public static final AggregationFunction SUM
public static final AggregationFunction AVERAGE
public static final AggregationFunction MAX
public static final AggregationFunction MIN
public static AggregationFunction[] values()
for (AggregationFunction c : AggregationFunction.values()) System.out.println(c);
public static AggregationFunction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null