MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / populate

Method populate

query/query.go:797–804  ·  view source on GitHub ↗
(uids []uint64)

Source from the content-addressed store, hash-verified

795}
796
797func (sg *SubGraph) populate(uids []uint64) error {
798 // Put sorted entries in matrix.
799 sort.Slice(uids, func(i, j int) bool { return uids[i] < uids[j] })
800 sg.uidMatrix = []*pb.List{{Uids: uids}}
801 // User specified list may not be sorted.
802 sg.SrcUIDs = &pb.List{Uids: uids}
803 return nil
804}
805
806// newGraph returns the SubGraph and its task query.
807func newGraph(ctx context.Context, gq *dql.GraphQuery) (*SubGraph, error) {

Callers 2

newGraphFunction · 0.95
filterCopyFunction · 0.80

Calls 1

SliceMethod · 0.80

Tested by

no test coverage detected