RangeGet returns the value of `key` that is contained in a range, and a bool value indicating if the `key` is found or not.
(key string)
| 82 | // RangeGet returns the value of `key` that is contained in a range, |
| 83 | // and a bool value indicating if the `key` is found or not. |
| 84 | func (si *SlimIndex) RangeGet(key string) (string, bool) { |
| 85 | o, found := si.SlimTrie.RangeGet(key) |
| 86 | if !found { |
| 87 | return "", false |
| 88 | } |
| 89 | |
| 90 | offset := o.(int64) |
| 91 | |
| 92 | return si.DataReader.Read(offset, key) |
| 93 | } |