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

Method setAttr

query/outputnode.go:310–315  ·  view source on GitHub ↗
(fj fastJsonNode, attr uint16)

Source from the content-addressed store, hash-verified

308}
309
310func (enc *encoder) setAttr(fj fastJsonNode, attr uint16) {
311 // There can be some cases where we change name of attr for fastJsoNode and
312 // hence first clear the existing attr, then store new one.
313 fj.meta &= unsetBytes76
314 fj.meta |= (uint64(attr) << 40)
315}
316
317func (enc *encoder) setScalarVal(fj fastJsonNode, sv []byte) error {
318 offset, err := enc.arena.put(sv)

Callers 2

newNodeMethod · 0.95
processNodeUidsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected