[JAVA-508] Add "out.*" support for MapReduceCommand Created: 23/Jan/12  Updated: 26/May/15  Resolved: 26/May/15

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 3.0.0

Type: Improvement Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Unassigned
Resolution: Done Votes: 3
Labels: api, mapreduce
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to JAVA-500 m/r out:db and out:sharded options Closed

 Description   

Currently you can only specify the db option for the "out:{}" option. We need support "sharded" as well.

https://github.com/mongodb/mongo-java-driver/blob/master/src/main/com/mongodb/MapReduceCommand.java#L253



 Comments   
Comment by Ross Lawley [ 26/May/15 ]

This is now accessible via the MapReduceIterable available from client.getDatabase("db").getCollection("collection).mapReduce

See: MapReduceIterable Api documentation.

Comment by Jeffrey Yemin [ 07/Mar/14 ]

For reference, http://docs.mongodb.org/manual/reference/command/mapReduce/#output-to-a-collection-with-an-action

Comment by martinus [ 11/May/12 ]

Is this feature will come out on the next java driver?

Generated at Thu Feb 08 08:52:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.