MCPcopy Create free account
hub / github.com/BWbwchen/MapReduce / newMapTasks

Function newMapTasks

master/mapTaskInfo.go:37–43  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

35}
36
37func newMapTasks(size int) []MapTaskInfo {
38 var ret []MapTaskInfo
39 for i := 0; i < size; i++ {
40 ret = append(ret, newMapTask())
41 }
42 return ret
43}
44
45func (mt *MapTaskInfo) toRPC() *rpc.MapInfo {
46 ret := &rpc.MapInfo{}

Callers 1

distributeWorkMethod · 0.85

Calls 1

newMapTaskFunction · 0.85

Tested by

no test coverage detected