MCPcopy
hub / github.com/dgraph-io/dgraph / PredicatePrefix

Function PredicatePrefix

x/keys.go:497–501  ·  view source on GitHub ↗

PredicatePrefix returns the prefix for all keys belonging to this predicate except schema key.

(predicate string)

Source from the content-addressed store, hash-verified

495
496// PredicatePrefix returns the prefix for all keys belonging to this predicate except schema key.
497func 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.
504func DataPrefix(ns uint64) []byte {

Callers 9

access.goFile · 0.92
printKeysFunction · 0.92
sizeHistogramFunction · 0.92
handleRestoreProposalFunction · 0.92
movePredicateHelperFunction · 0.92
DeletePredicateFunction · 0.92
dropDepreciatedFunction · 0.92

Calls 2

generateKeyFunction · 0.70
AssertTrueFunction · 0.70

Tested by

no test coverage detected