queryStatistics method
- StatisticsQueryParameters statisticsQueryParameters
Calculates values for the requested statistics.
Statistics query parameters may also define fields on which results are grouped or sorted.
Parameters:
statisticsQueryParameters
— The parameters that define the statistics, fields, and features to be used for the query.
Return Value: A task that represents the asynchronous query statistics operation. The value of the task result contains a StatisticsQueryResult object.
Implementation
Future<StatisticsQueryResult> queryStatistics(
StatisticsQueryParameters statisticsQueryParameters,
) {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_FeatureTable_queryStatistics(
_handle,
statisticsQueryParameters._handle,
errorHandler,
);
});
return taskHandle.toFuture(
(element) => element.getValueAsStatisticsQueryResult()!,
);
}