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

Constructor Summary
MapReduceOutput(DBCollection from, DBObject cmd, CommandResult raw)
           
 
Method Summary
 void drop()
          drops the collection that holds the results
 DBObject getCommand()
           
 CommandResult getCommandResult()
           
 DBCollection getOutputCollection()
          gets the collection that holds the results (Will return null if results are Inline)
 BasicDBObject getRaw()
          Deprecated. 
 ServerAddress getServerUsed()
           
 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
 

Constructor Detail

MapReduceOutput

public MapReduceOutput(DBCollection from,
                       DBObject cmd,
                       CommandResult raw)
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

Throws:
MongoException

getOutputCollection

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

Returns:

getRaw

@Deprecated
public BasicDBObject getRaw()
Deprecated. 


getCommandResult

public CommandResult getCommandResult()

getCommand

public DBObject getCommand()

getServerUsed

public ServerAddress getServerUsed()

toString

public String toString()
Overrides:
toString in class Object