kv_parallel_scan_get_shard_metrics()
#include <kvstore.h>
kv_error_t
kv_parallel_scan_get_shard_metrics(
const kv_parallel_scan_iterator_t *iterator,
kv_detailed_metrics_list_t **result)
Gets the per-shard metrics for this parallel scan. This may be called at any time during the iteration in order to obtain metrics to that point or it may be called at the end to obtain metrics for the entire scan.
Parameters
-
iterator
The iterator parameter is the iterator for which you want to return statistics. This iterator is allocated using kv_parallel_store_iterator() or kv_parallel_store_iterator_keys()
-
result
The result parameter is the list of parallel scan shard metrics. Use kv_detailed_metrics_list_get_record_count(), kv_detailed_metrics_list_get_scan_time(), and kv_detailed_metrics_list_get_name()to examine this list. Return the size of this list using . Release this list using kv_release_detailed_metrics_list().
See Also