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

Method less

query/outputnode.go:174–178  ·  view source on GitHub ↗
(i fastJsonNode, j fastJsonNode)

Source from the content-addressed store, hash-verified

172}
173
174func (enc *encoder) less(i fastJsonNode, j fastJsonNode) bool {
175 attri := enc.getAttr(i)
176 attrj := enc.getAttr(j)
177 return strings.Compare(enc.attrForID(attri), enc.attrForID(attrj)) <= 0
178}
179
180func frontBackSplit(source fastJsonNode,
181 frontRef *fastJsonNode, backRef *fastJsonNode) {

Callers 1

mergeSortedListsMethod · 0.95

Calls 3

getAttrMethod · 0.95
attrForIDMethod · 0.95
CompareMethod · 0.80

Tested by

no test coverage detected