Case class for invoking MongoDB mapReduces.
the collection name to run the map reduce on
the map function (JSFunction is just a type alias for String)
the reduce function (JSFunction is just a type alias for String)
(optional) the location of the result of the map-reduce operation, defaults to inline. You can output to a collection, output to a collection with an action, or output inline.
(optional) the selection criteria for the documents input to the map function.
(optional) the input documents, useful for optimization.
(optional) the maximum number of documents to return from the collection before map reduce
(optional) the finalize function (JSFunction is just a type alias for String)
(optional) global variables that are accessible in the map, reduce and finalize functions
(optional) include the timing information in the result information
(optional) the maximum duration that the server will allow this operation to execute before killing it
Wrapper for MongoDB MapReduceResults, implementing iterator to allow direct iterator over the result set.