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

Method attrForID

query/outputnode.go:211–218  ·  view source on GitHub ↗
(id uint16)

Source from the content-addressed store, hash-verified

209}
210
211func (enc *encoder) attrForID(id uint16) string {
212 // For now we are not returning error from here.
213 if id == 0 || id >= uint16(len(enc.idSlice)) {
214 return ""
215 }
216
217 return enc.idSlice[id]
218}
219
220// makeScalarNode returns a fastJsonNode with all of its meta data, scalarVal populated.
221func (enc *encoder) makeScalarNode(attr uint16, val []byte, list bool) (fastJsonNode, error) {

Callers 5

lessMethod · 0.95
writeKeyMethod · 0.95
encodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected