queryFeatureCount method

Future<int> queryFeatureCount(
  1. QueryParameters queryParameters
)

Determines the count of features that satisfy the provided query parameters.

Parameters:

  • queryParameters — The parameters of the query.

Return Value: A task that represents the asynchronous query of feature count. The value of the task result contains a uint64_t.

Implementation

Future<int> queryFeatureCount(
  QueryParameters queryParameters,
) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_FeatureTable_queryFeatureCount(
      _handle,
      queryParameters._handle,
      errorHandler,
    );
  });
  return taskHandle.toFuture(
    (element) => element.getValueAsInt()!,
  );
}