开发者

Searching for Records in Berkeley DB JE

开发者 https://www.devze.com 2023-03-21 11:04 出处:网络
For example, suppose you have database records that use the following Strings as keys: Alabama Alaska Arizona

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

精彩评论

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

关注公众号