PredicatePrefix returns the prefix for all keys belonging to this predicate except schema key.
(predicate string)
| 495 | |
| 496 | // PredicatePrefix returns the prefix for all keys belonging to this predicate except schema key. |
| 497 | func PredicatePrefix(predicate string) []byte { |
| 498 | buf, prefixLen := generateKey(DefaultPrefix, predicate, 0) |
| 499 | AssertTrue(len(buf) == prefixLen) |
| 500 | return buf |
| 501 | } |
| 502 | |
| 503 | // DataPrefix returns the prefix for all data keys belonging to this namespace. |
| 504 | func DataPrefix(ns uint64) []byte { |
no test coverage detected