Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenerateFunc ¶
type GenerateFunc func(source chan<- interface{})
GenerateFunc is used to let callers send elements into source.
type Option ¶
type Option func(opts *options)
Option defines the method to customize the mapreduce.
func WithWorkerSize ¶
WithWorkerSize customizes a mapreduce processing with given workers.
type ReducerFunc ¶
ReducerFunc is used to reduce all the mapping output and write to writer, use cancel func to cancel the processing.
Click to show internal directories.
Click to hide internal directories.