StatisticDefinition constructor
- required String onFieldName,
- required StatisticType statisticType,
- String outputAlias = '',
Creates a statistic definition. A statistic definition must specify a field name and statistic type. Optionally, you can provide a name for the output statistic result.
Parameters:
onFieldName
— The name of the field in the table containing values to be used for the statistic.statisticType
— The statistic to calculate.outputAlias
— The optional name for this statistic in the results.