rehacktive / waspdb

key/value data storage library for Android, pure java and encrypted

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ability to get first and last values

wanbyte opened this issue · comments

commented

Nice job guys...Waspdb is really great...Using it and is super fast..Pls can u add support for ability to immediately get the last and first values in a WaspHash? I mean without having to know the key before hand.

commented

Hi, thanks :) unfortunately the feature you requested is not possible, the data inside the WaspHash is not sorted, so there's not "first" or "last".
You can retrieve the list of all the keys, sort them and then use the first/last to get the data.

Ok.Cool