OpenMPDK / KVSSD

KV SSD host software including APIs and drivers
Other
230 stars 55 forks source link

[KV API] Some questions about iterator #26

Closed terrafin closed 5 years ago

terrafin commented 5 years ago

Dear all, I have some questions about iterator's functionalities.

  1. Does KVSSD Host SW Packages supports KVS_ITERATOR_KEY_VALUE mode now(for version 0.9.0)? According to Samsung_KV_API_spec, it doesn't. However, I saw some lines that once used for restricting KVS_ITERATOR_KEY_VALUE mode but now commented out, in source codes.

  2. What does kvs_iterator_next() function do exactly? Does it concatenate data(key, key length, etc) for only one key to it_list?

Thank you.

kvssd-support commented 5 years ago

The Samsung Key-value SSD currently supports only KVS_ITERATOR_KEY option only. When KVS_ITERATOR_KEY is set, multiple keys are retrieved for every kvs_iterator_next() API call - (a subset of keys are returned in iter_list->it_list data structure)

terrafin commented 5 years ago

Then, what is the rule of retrieving keys when kvs_iterator_next() is called once? A group? Or, just bitmask and pattern?

kvssd-support commented 5 years ago

Please refer Samsung KV API spec, section 7.4.5 "kvs_iterator_next" for more details on how keys are retrieved when kvs_iterator_next() is called.

In-case still you have any query, please share query.

kvssd-support commented 5 years ago

Closing this issue now