开发者

Searching for Records in Berkeley DB JE

For example, suppose you have database records that use the following Strings as keys:

Alabama
Alaska
Arizona

Providing a key of Al moves the cursor to the first key (Alabama),

Now, I think the retur开发者_JAVA百科ned result should be UNFOUNDED if provided the search key by "Al". What should I do to ensure that the key is completely matched.


I thought about it and if you want an exact match, it's easier to use the get() methods of your indices.


It depends on how you're making the call to get the key. Some source code would help clarify your question. You can also get quicker answers to these types of questions in the Berkeley DB Java Edition forum on OTN.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜