Skip to content

Commit d261f8a

Browse files
JAVA-300 convert scope to map
1 parent 1cb8f5c commit d261f8a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/com/mongodb/MapReduceCommand.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
package com.mongodb;
1919

20+
import java.util.Map;
21+
2022
/**
2123
* This class groups the argument for a map/reduce operation and can build the underlying command object
2224
* @dochub mapreduce
@@ -201,7 +203,7 @@ public void setLimit( int limit ){
201203
*
202204
* @return The JavaScript scope
203205
*/
204-
public String getScope(){
206+
public Map<String, Object> getScope(){
205207
return _scope;
206208
}
207209

@@ -211,7 +213,7 @@ public String getScope(){
211213
* @param scope
212214
* The JavaScript scope
213215
*/
214-
public void setScope( String scope ){
216+
public void setScope( Map<String, Object> scope ){
215217
_scope = scope;
216218
}
217219

@@ -288,6 +290,6 @@ public String toString() {
288290
String _finalize;
289291
DBObject _sort;
290292
int _limit;
291-
String _scope;
293+
Map<String, Object> _scope;
292294
Boolean _verbose = true;
293295
}

0 commit comments

Comments
 (0)