public class

MapReduceOutput

extends Object
java.lang.Object
   ↳ com.mongodb.MapReduceOutput

Class Overview

Represents the result of a map/reduce operation

Summary

Public Constructors
MapReduceOutput(DBCollection from, DBObject cmd, CommandResult raw)
Public Methods
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()
ServerAddress getServerUsed()
Iterable<DBObject> results()
returns a cursor to the results of the operation
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MapReduceOutput (DBCollection from, DBObject cmd, CommandResult raw)

Public Methods

public void drop ()

drops the collection that holds the results

public DBObject getCommand ()

public CommandResult getCommandResult ()

public DBCollection getOutputCollection ()

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

public BasicDBObject getRaw ()

public ServerAddress getServerUsed ()

public Iterable<DBObject> results ()

returns a cursor to the results of the operation

public String toString ()