com.mongodb
Class MapReduceOutput

java.lang.Object
  extended by com.mongodb.MapReduceOutput

public class MapReduceOutput
extends Object

Represents the result of a map/reduce operation

Author:
antoine

Method Summary
 void drop()
          drops the collection that holds the results
 DBObject getCommand()
           
 DBCollection getOutputCollection()
          gets the collection that holds the results (Will return null if results are Inline)
 BasicDBObject getRaw()
           
 Iterable<DBObject> results()
          returns a cursor to the results of the operation
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

results

public Iterable<DBObject> results()
returns a cursor to the results of the operation

Returns:

drop

public void drop()
drops the collection that holds the results


getOutputCollection

public DBCollection getOutputCollection()
gets the collection that holds the results (Will return null if results are Inline)

Returns:

getRaw

public BasicDBObject getRaw()

getCommand

public DBObject getCommand()

toString

public String toString()
Overrides:
toString in class Object