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

Function fetchValues

worker/sort.go:582–594  ·  view source on GitHub ↗
(ctx context.Context, in *pb.Query, idx int, or chan orderResult)

Source from the content-addressed store, hash-verified

580}
581
582func fetchValues(ctx context.Context, in *pb.Query, idx int, or chan orderResult) {
583 var err error
584 in.Reverse = strings.HasPrefix(in.Attr, "~")
585 if in.Reverse {
586 in.Attr = strings.TrimPrefix(in.Attr, "~")
587 }
588 r, err := ProcessTaskOverNetwork(ctx, in)
589 or <- orderResult{
590 idx: idx,
591 err: err,
592 r: r,
593 }
594}
595
596type intersectedList struct {
597 offset int

Callers 1

multiSortFunction · 0.85

Calls 1

ProcessTaskOverNetworkFunction · 0.85

Tested by

no test coverage detected