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

Method Put

xidmap/trie.go:50–52  ·  view source on GitHub ↗

Put would store the UID for the key.

(key string, uid uint64)

Source from the content-addressed store, hash-verified

48
49// Put would store the UID for the key.
50func (t *Trie) Put(key string, uid uint64) {
51 t.put(t.root, key, uid)
52}
53
54// Size returns the size of Arena used by this Trie so far.
55func (t *Trie) Size() uint32 {

Callers 10

TestTrieFunction · 0.95
TestTrieIterateFunction · 0.95
BenchmarkWordsTrieFunction · 0.95
CloseMethod · 0.80
ReadMethod · 0.80
runKShortestPathsFunction · 0.80
stringJsonMarshalFunction · 0.80
toFastJSONMethod · 0.80
addKeyToBatchMethod · 0.80
ProcessMethod · 0.80

Calls 1

putMethod · 0.95

Tested by 3

TestTrieFunction · 0.76
TestTrieIterateFunction · 0.76
BenchmarkWordsTrieFunction · 0.76