Documentation ¶
Index ¶
- type MapTask
- type Master
- func (master *Master) GetMapStatus() Status
- func (master *Master) GetReduceStatus() Status
- func (master *Master) MapHandler(ctx context.Context, mapTask chan MapTask, wg *sync.WaitGroup)
- func (master *Master) ReduceHandler(ctx context.Context, reduceTask chan ReduceTask, peerChan chan string, ...)
- func (master *Master) RunMapReduce(ctx context.Context)
- type ReduceTask
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Master ¶
type Master struct { Node *core.IpfsNode RpcClient *gorpc.Client MapFuncFilePath string ReduceFuncFilePath string MapFuncFileCid string ReduceFuncFileCid string NoOfReducers int MrOutputFile string DataFileCid string DataFileBlocks []string MapStatus Status BlockProviders map[string][]string // datafileblock to peerid providers MapAllocation map[string]string // datafileblock to peerid allocated for map RMapAllocation map[string]string // reverse of map allocation MapOutput map[string][]string // datafileblock to list of NoOfReducers cids for map output files ReduceStatus Status ReduceOutput map[int]string ReduceAllocation map[int]string // number to peerid ReduceFileMap map[int][]string // number to list of cids as per map output // contains filtered or unexported fields }
func (*Master) GetMapStatus ¶
func (*Master) GetReduceStatus ¶
func (*Master) MapHandler ¶
func (*Master) ReduceHandler ¶
func (*Master) RunMapReduce ¶
type ReduceTask ¶
Click to show internal directories.
Click to hide internal directories.