rehacktive / waspdb

key/value data storage library for Android, pure java and encrypted
Apache License 2.0
226 stars 24 forks source link

Add ability to get first and last values #10

Closed wanGiB closed 8 years ago

wanGiB commented 8 years ago

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.

rehacktive commented 8 years ago

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.

wanaclem commented 8 years ago

Ok.Cool