MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / createOrderForTask

Method createOrderForTask

query/query.go:2581–2592  ·  view source on GitHub ↗

createOrderForTask creates namespaced aware order for the task.

(ns uint64)

Source from the content-addressed store, hash-verified

2579
2580// createOrderForTask creates namespaced aware order for the task.
2581func (sg *SubGraph) createOrderForTask(ns uint64) []*pb.Order {
2582 out := []*pb.Order{}
2583 for _, o := range sg.Params.Order {
2584 oc := &pb.Order{
2585 Attr: x.NamespaceAttr(ns, o.Attr),
2586 Desc: o.Desc,
2587 Langs: o.Langs,
2588 }
2589 out = append(out, oc)
2590 }
2591 return out
2592}
2593
2594func (sg *SubGraph) updateDestUids() {
2595 // Update sg.destUID. Iterate over the UID matrix (which is not sorted by

Callers 2

createTaskQueryFunction · 0.80

Calls 1

NamespaceAttrFunction · 0.92

Tested by

no test coverage detected