[JAVA-500] m/r out:db and out:sharded options Created: 29/Dec/11 Updated: 19/Oct/16 Resolved: 29/Dec/11 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Uladzimir Mihura | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | epam | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
At this moment we can specify only MapReduceCommand.OutputType and collection name.
No way for this:
|
| Comments |
| Comment by Scott Hernandez (Inactive) [ 23/Jan/12 ] | ||||||
|
yes, there would need to be a change to the code. I have create another issue to track that api change: | ||||||
| Comment by Peter Maedel [ 23/Jan/12 ] | ||||||
|
looking at toDBObject.toDBObject() clearly shows that there the out.sharded option is never being added from nowhere. why is this issue resolved? | ||||||
| Comment by Scott Hernandez (Inactive) [ 29/Dec/11 ] | ||||||
|
Feel free to add a feature request. I don't think this method you describe is better or even and good idea; if anything we should make the MapReduceCommand a builder pattern and deprecate the existing method you first used in your example. More docs are always better | ||||||
| Comment by Uladzimir Mihura [ 29/Dec/11 ] | ||||||
|
ALso I think that MapReduceCommand can have the following constructor:
-vova | ||||||
| Comment by Uladzimir Mihura [ 29/Dec/11 ] | ||||||
|
Scott, This is addExtraOption method? Thank you in advance. -vova | ||||||
| Comment by Scott Hernandez (Inactive) [ 29/Dec/11 ] | ||||||
|
You have to use MapReduceCommand version to do this. |