Documentation ¶
Index ¶
- Variables
- func Init(masterIP string)
- func StartWorker(pluginFile string, nReduce int, addr string, storeInRAM bool)
- func UpdateIMDInfo(u *rpc.IMDInfo) bool
- func WorkerRegister(w *rpc.WorkerInfo) int
- type KV
- type MapFormat
- type MrContext
- type ReduceFormat
- type Worker
- func (wr *Worker) End(ctx context.Context, in *rpc.Empty) (*rpc.Empty, error)
- func (wr *Worker) GetIMDData(ctx context.Context, in *rpc.IMDLoc) (*rpc.KVs, error)
- func (wr *Worker) Map(ctx context.Context, in *rpc.MapInfo) (*rpc.Result, error)
- func (wr *Worker) Reduce(ctx context.Context, in *rpc.ReduceInfo) (*rpc.Result, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MasterIP string
Functions ¶
func UpdateIMDInfo ¶
func WorkerRegister ¶
func WorkerRegister(w *rpc.WorkerInfo) int
Types ¶
type KV ¶
func GetIMDData ¶
type MrContext ¶
func (*MrContext) EmitIntermediate ¶
type ReduceFormat ¶
type Worker ¶
type Worker struct { UUID string ID int Mapf MapFormat Reducef ReduceFormat Chan MrContext EndChan chan bool rpc.UnimplementedWorkerServer // contains filtered or unexported fields }
func (*Worker) GetIMDData ¶
Click to show internal directories.
Click to hide internal directories.