Given: Records stored as a simple string DatabaseEntry key-value, keys looks like:
- NODE_1
- NODE_1_PROP_1
- NODE_1_PROP_2
- NODE_1_PROP_3
- NODE_2
- NODE_2_PROP_1
- NODE_2_PROP_2
- NODE_2_PROP_3
How to: Select only records which IDs starts with NODE_1, result 1-4 ?
I’ve used Cursor.getNext(), but general problem with Cursor class is that it keeps going to the next record, so if I would go in that way I’ll have to evaluate key prefix every time in order to stop when cursor will be on NODE_2.