Specify the MapReduceAction
to be used when writing to a collection.
Specify the MapReduceAction
to be used when writing to a collection.
an model.MapReduceAction to perform on the collection
this
Sets the collectionName for the output of the MapReduce
Sets the collectionName for the output of the MapReduce
The default action is replace the collection if it exists, to change this use action.
the name of the collection that you want the map-reduce operation to write its output.
this
Sets the name of the database to output into.
Sets the name of the database to output into.
the name of the database to output into.
this
Sets the query filter to apply to the query.
Sets the query filter to apply to the query.
the filter to apply to the query.
this
Sets the JavaScript function that follows the reduce method and modifies the output.
Sets the JavaScript function that follows the reduce method and modifies the output.
the JavaScript function that follows the reduce method and modifies the output.
this
Sets the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions.
Sets the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions. Defaults to false.
the flag that specifies whether to convert intermediate data into BSON format between the execution of the map and reduce functions
jsMode
Sets the limit to apply.
Sets the limit to apply.
the limit, which may be null
this
Sets the maximum execution time on the server for this operation.
Sets the maximum execution time on the server for this operation.
the duration
this
Sets if the post-processing step will prevent MongoDB from locking the database.
Sets if the post-processing step will prevent MongoDB from locking the database.
Valid only with the MapReduceAction.MERGE
or MapReduceAction.REDUCE
actions.
if the post-processing step will prevent MongoDB from locking the database.
this
Sets the global variables that are accessible in the map, reduce and finalize functions.
Sets the global variables that are accessible in the map, reduce and finalize functions.
the global variables that are accessible in the map, reduce and finalize functions.
this
Sets if the output database is sharded
Sets if the output database is sharded
if the output database is sharded
this
Sets the sort criteria to apply to the query.
Sets the sort criteria to apply to the query.
the sort criteria, which may be null.
this
Request Observable
to start streaming data.
Request Observable
to start streaming data.
This is a "factory method" and can be called multiple times, each time starting a new Subscription.
Each Subscription
will work for only a single Observer.
If the Observable
rejects the subscription attempt or otherwise fails it will signal the error via Observer.onError.
the Observer
that will consume signals from this Observable
Handles the automatic boxing of a Java Observable
so it conforms to the interface.
Handles the automatic boxing of a Java Observable
so it conforms to the interface.
the Observer
that will consume signals from this Observable
Users should not have to implement this method but rather use the Scala Observable
.
Aggregates documents to a collection according to the specified map-reduce function with the given options, which must specify a non-inline result.
Aggregates documents to a collection according to the specified map-reduce function with the given options, which must specify a non-inline result.
a Observable with a single element indicating when the operation has completed Aggregation
Sets whether to include the timing information in the result information.
Sets whether to include the timing information in the result information.
whether to include the timing information in the result information.
this
Observable for map reduce.