This content has been marked as final. Show 1 reply
Yes. Since all keys are unique in a store, the keys form a set.
Normally it is best to think of a key-value store (such as NoSQL DB) as a map, not a set, because each key has an associated value. But the value is optional (the value byte array can be zero length). We expect that most applications will store values (with non-zero lengths) with each key, but this is not required.
In addition, even when keys have values (with non-zero lengths), there are APIs to retrieve the keys alone, without their associated values. See KVStore.multiGetKeys, for example. This method returns SortedSet<Key>, in other words, it returns a set of keys.