Package io.keikai.axyra.sheets
Enum Class AggregateFunction
- All Implemented Interfaces:
Serializable,Comparable<AggregateFunction>,Constable
Aggregate function for a pivot table data (values) field.
Mirrors ECMA-376 Part 1 §18.18.18 ST_DataConsolidateFunction,
the value set of the subtotal attribute on <dataField>.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArithmetic mean of the numeric values (Excel's "Average").Number of non-empty values, numbers and text alike, as COUNTA counts (Excel's "Count").Number of numeric values only, as COUNT counts (countNums, Excel's "Count Numbers").Largest numeric value (Excel's "Max").Smallest numeric value (Excel's "Min").Product of the numeric values (Excel's "Product").Sample standard deviation (stdDev).Population standard deviation (stdDevp).Sum of the numeric values (Excel's "Sum").Sample variance (var).Population variance (varp). -
Method Summary
Modifier and TypeMethodDescriptionstatic AggregateFunctionParses anST_DataConsolidateFunctiontoken, ignoring case.ooxml()Returns theST_DataConsolidateFunctiontoken, e.g.static AggregateFunctionReturns the enum constant of this class with the specified name.static AggregateFunction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUM
Sum of the numeric values (Excel's "Sum"). -
COUNT
Number of non-empty values, numbers and text alike, as COUNTA counts (Excel's "Count"). -
AVERAGE
Arithmetic mean of the numeric values (Excel's "Average"). -
MAX
Largest numeric value (Excel's "Max"). -
MIN
Smallest numeric value (Excel's "Min"). -
PRODUCT
Product of the numeric values (Excel's "Product"). -
COUNT_NUMS
Number of numeric values only, as COUNT counts (countNums, Excel's "Count Numbers"). -
STD_DEV
Sample standard deviation (stdDev). -
STD_DEVP
Population standard deviation (stdDevp). -
VAR
Sample variance (var). -
VARP
Population variance (varp).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
ooxml
Returns theST_DataConsolidateFunctiontoken, e.g."sum"or"countNums". -
fromOoxml
Parses anST_DataConsolidateFunctiontoken, ignoring case.- Parameters:
value- the token, e.g."sum"- Throws:
IllegalArgumentException- ifvalueis not a known token
-