kv_iterator_size()

#include <kvstore.h>

kv_int_t 
kv_iterator_size(const kv_iterator_t *iterator) 

Returns the number of items contained in the iterator. This function can only be used with iterators returned by the kv_multi_* line of functions. The iterators returned by other functions, such as kv_store_iterator(), are not usable by this function.

Parameters

store

The store parameter is the handle to the store to which the iterator belongs.

iterator

The iterator parameter is the handle to the iterator for which you want sizing information.

See Also

Data Operations and Related Functions