Module type MapReduce.S

module type S = sig .. end
Signature of a map/reduce computation.

type input
The type of input values.
 
type output
The type of output values.
 
val compute : ThreadPoolExecutor.t ->
input Stream.t -> output -> output
Iterates over the passed stream using pool threads to execute map operations over the various input values, and applies combine operation over values having identical keys as soon as they are available.

Then, folds over key/value couple through the reduce operation, using the third parameter as the inital value.