[DOCS-1516] Comment on: "manual/reference/method/db.collection.mapReduce.txt" Created: 15/May/13  Updated: 03/Nov/17  Resolved: 15/May/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: auto Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Win7 32bit
develop language : java
mongodb drive : mongo-2.7.3.jar

Location: http://docs.mongodb.org/manual/reference/method/db.collection.mapReduce/#db.collection.mapReduce
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Referrer: http://docs.mongodb.org/manual/tutorial/map-reduce-examples/
Screen Resolution: 1024 x 768
repo: docs
source: reference/method/db.collection.mapReduce


Participants:
Days since reply: 10 years, 40 weeks ago

 Description   

Hello, I can't find a finalize reference in mapreduce function with java api in anywhere..
Is there anyway can implement mapreduce funtion with java api like this:
collection.mapreduce(String map, String reduce, String finalize, String OutPutTarget....)

Thanks!!!



 Comments   
Comment by Sam Kleinman (Inactive) [ 15/May/13 ]

http://api.mongodb.org/java/current/com/mongodb/MapReduceCommand.html

Because MapReduce is a Database command that use javascript on the server, finalize functions are the same in the shell as they are in Java or any other language.

I hope this helps.

Generated at Thu Feb 08 07:41:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.