0

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 returned result should be UNFOUNDED if provided the search key by "Al". What should I do to ensure that the key is completely matched.

Charlie Epps
  • 3,595
  • 9
  • 33
  • 38

2 Answers2

1

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

biziclop
  • 48,926
  • 12
  • 77
  • 104
0

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.

dsegleau
  • 1,942
  • 9
  • 13