MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / Key

Method Key

worker/restore_map.go:126–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124type mapEntry []byte
125
126func (me mapEntry) Key() []byte {
127 sz := binary.BigEndian.Uint16(me[0:2])
128 return me[2 : 2+sz]
129}
130func (me mapEntry) Data() []byte {
131 sz := binary.BigEndian.Uint16(me[0:2])
132 return me[2+sz:]

Callers 15

NewFunction · 0.45
VerifySnapshotFunction · 0.45
WriteBackupMethod · 0.45
exportInternalFunction · 0.45
sortWithIndexFunction · 0.45
writeToDiskMethod · 0.45
sendForWritingMethod · 0.45
doStreamSnapshotFunction · 0.45
NextMethod · 0.45
blockingReadMethod · 0.45
processMethod · 0.45
getInequalityTokensFunction · 0.45

Calls

no outgoing calls

Tested by 5

PopulateListFunction · 0.36
tokensForTestFunction · 0.36
TestRebuildTokIndexFunction · 0.36
TestRebuildReverseEdgesFunction · 0.36