public class MapReduceOutput extends Object
Modifier and Type | Method and Description |
---|---|
void |
drop()
Drops the collection that holds the results.
|
String |
getCollectionName()
Get the name of the collection that the results of the map reduce were saved into.
|
DBObject |
getCommand()
Get the original command that was sent to the database.
|
String |
getDatabaseName()
Get the name of the database that the results of the map reduce were saved into.
|
int |
getDuration()
Get the amount of time, in milliseconds, that it took to run this map reduce.
|
int |
getEmitCount()
Get the number of messages emitted from the provided map function.
|
int |
getInputCount()
Get the number of documents that were input into the map reduce operation
|
DBCollection |
getOutputCollection()
Gets the collection that holds the results (Will return null if results are Inline).
|
int |
getOutputCount()
Get the number of documents generated as a result of this map reduce
|
Iterable<DBObject> |
results()
Returns an iterable containing the results of the operation.
|
String |
toString() |
public Iterable<DBObject> results()
public void drop()
public DBCollection getOutputCollection()
public DBObject getCommand()
public final String getCollectionName()
public String getDatabaseName()
public int getDuration()
public int getInputCount()
public int getOutputCount()
public int getEmitCount()