mapreduce

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapTask

type MapTask struct {
	Index int
}

MapTask processes a single item of input data.

func (*MapTask) Execute

func (t *MapTask) Execute(ctx context.Context) error

type ReduceTask

type ReduceTask struct {
	ReducerIndex int
}

ReduceTask aggregates results from map tasks.

func (*ReduceTask) Execute

func (t *ReduceTask) Execute(ctx context.Context) error

type RootTask

type RootTask struct {
	NumMapTasks    int
	NumReduceTasks int
}

RootTask is the entry point that spawns all map and reduce tasks.

func (*RootTask) Execute

func (t *RootTask) Execute(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL