开发者

Kyoto Cabinet: is there a way to do a search for 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜