This content has been marked as final. Show 2 replies
The parentKey value in this context is treated the same as parentKey argument to the KVStore.storeIterator() methods. As described in the javadoc for those API calls:
parentKey - the parent key whose "child" KV pairs are to be fetched. It may be null to fetch all keys in the store. If non-null, the major key path must be a partial path and the minor key path must be empty.
So, in fact, the parentKey MUST NOT be a complete major key - it must be partial. There must be majorKey components following the parentKey that is specified. The subRange argument does interacts with this though. In the example, if you leave parentKey as "/user" but add a subRange parameter with value
"Iemail@example.comfirstname.lastname@example.org/I" you would achieve the result that I think you originally anticipated.