MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / DataPrefix

Method DataPrefix

x/keys.go:385–389  ·  view source on GitHub ↗

TODO(Naman): Remove these functions as they are unused. DataPrefix returns the prefix for data keys.

()

Source from the content-addressed store, hash-verified

383
384// DataPrefix returns the prefix for data keys.
385func (p ParsedKey) DataPrefix() []byte {
386 buf, prefixLen := generateKey(p.bytePrefix, p.Attr, 1)
387 buf[prefixLen] = ByteData
388 return buf
389}
390
391// IndexPrefix returns the prefix for index keys.
392func (p ParsedKey) IndexPrefix() []byte {

Callers 8

handleHasFunctionMethod · 0.95
hasEdgesFunction · 0.95
rebuildTokIndexFunction · 0.95
rebuildCountIndexFunction · 0.95
rebuildReverseEdgesFunction · 0.95
rebuildListTypeFunction · 0.95
FindMethod · 0.95
getDataFunction · 0.95

Calls 1

generateKeyFunction · 0.70

Tested by

no test coverage detected