SkipPredicate returns the first key after the keys corresponding to the predicate of this key. Useful when iterating in the reverse order.
()
| 373 | // SkipPredicate returns the first key after the keys corresponding to the predicate |
| 374 | // of this key. Useful when iterating in the reverse order. |
| 375 | func (p ParsedKey) SkipPredicate() []byte { |
| 376 | buf, prefixLen := generateKey(p.bytePrefix, p.Attr, 1) |
| 377 | AssertTrue(len(buf[prefixLen:]) == 1) |
| 378 | buf[prefixLen] = 0xFF |
| 379 | return buf |
| 380 | } |
| 381 | |
| 382 | // TODO(Naman): Remove these functions as they are unused. |
| 383 |
no test coverage detected