开发者

Kyoto Cabinet: is there a way to do a search for nearest key?

开发者 https://www.devze.com 2023-03-13 15:58 出处:网络
I\'d love to be able to use one of Kyoto Cabinet\'s tree datastructures, but I need the ability to return the nearest key.

I'd love to be able to use one of Kyoto Cabinet's tree datastructures, but I need the ability to return the nearest key.

Ie I h开发者_开发技巧ave

1,100
3,500
7,1000

And given 2, I'd return 1.

Is this possible? If not, what is a lightweight, high speed alternative turned to do exactly this?

Thanks


Kyoto Cabinet has Cursor and you can find bigger, equal or lower key using Cursor in TreeDB.

0

精彩评论

暂无评论...
验证码 换一张
取 消