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

Method uid

dgraph/cmd/bulk/mapper.go:351–360  ·  view source on GitHub ↗
(xid string, ns uint64)

Source from the content-addressed store, hash-verified

349}
350
351func (m *mapper) uid(xid string, ns uint64) uint64 {
352 if !m.opt.NewUids {
353 if uid, err := strconv.ParseUint(xid, 0, 64); err == nil {
354 m.xids.BumpTo(uid)
355 return uid
356 }
357 }
358
359 return m.lookupUid(xid, ns)
360}
361
362func (m *mapper) lookupUid(xid string, ns uint64) uint64 {
363 // We create a copy of xid string here because it is stored in

Callers 1

processNQuadMethod · 0.95

Calls 2

lookupUidMethod · 0.95
BumpToMethod · 0.80

Tested by

no test coverage detected