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

Struct Worker

worker/worker.go:20–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18type ReduceFormat (func(string, []string, MrContext))
19
20type Worker struct {
21 UUID string
22 ID int
23 nReduce int
24 Mapf MapFormat
25 Reducef ReduceFormat
26 Chan MrContext
27 EndChan chan bool
28 storeInRAM bool
29 State rpc.WorkerState_State
30 mux sync.Mutex
31 rpc.UnimplementedWorkerServer
32}
33
34func newWorker(nReduce int, inRAM bool) rpc.WorkerServer {
35 return &Worker{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected