Package com.mongodb
Class MapReduceOutput
java.lang.Object
com.mongodb.MapReduceOutput
Deprecated.
Superseded by aggregate
Represents the result of a map/reduce operation.  Users should interact with the results of the map reduce via the results() method, or
 by interacting directly with the collection the results were input into.
- MongoDB documentation
- Map-Reduce
- 
Method SummaryModifier and TypeMethodDescriptionvoiddrop()Deprecated.Drops the collection that holds the results.final StringDeprecated.Get the name of the collection that the results of the map reduce were saved into.Deprecated.Get the original command that was sent to the database.Deprecated.Get the name of the database that the results of the map reduce were saved into.intDeprecated.Get the amount of time, in milliseconds, that it took to run this map reduce.intDeprecated.Get the number of messages emitted from the provided map function.intDeprecated.Get the number of documents that were input into the map reduce operationDeprecated.Gets the collection that holds the results (Will return null if results are Inline).intDeprecated.Get the number of documents generated as a result of this map reduceresults()Deprecated.Returns an iterable containing the results of the operation.toString()Deprecated.
- 
Method Details- 
resultsDeprecated.Returns an iterable containing the results of the operation.- Returns:
- the results in iterable form
 
- 
droppublic void drop()Deprecated.Drops the collection that holds the results. Does nothing if the map-reduce returned the results inline.
- 
getOutputCollectionDeprecated.Gets the collection that holds the results (Will return null if results are Inline).- Returns:
- the collection or null
 
- 
getCommandDeprecated.Get the original command that was sent to the database.- Returns:
- a DBObject containing the values of the original map-reduce command.
 
- 
toStringDeprecated.
- 
getCollectionNameDeprecated.Get the name of the collection that the results of the map reduce were saved into. If the map reduce was an inline operation (i.e . the results were returned directly from calling the map reduce) this will return null.- Returns:
- the name of the collection that the map reduce results are stored in
 
- 
getDatabaseNameDeprecated.Get the name of the database that the results of the map reduce were saved into. If the map reduce was an inline operation (i.e . the results were returned directly from calling the map reduce) this will return null.- Returns:
- the name of the database that holds the collection that the map reduce results are stored in
 
- 
getDurationpublic int getDuration()Deprecated.Get the amount of time, in milliseconds, that it took to run this map reduce.- Returns:
- an int representing the number of milliseconds it took to run the map reduce operation
 
- 
getInputCountpublic int getInputCount()Deprecated.Get the number of documents that were input into the map reduce operation- Returns:
- the number of documents that read while processing this map reduce
 
- 
getOutputCountpublic int getOutputCount()Deprecated.Get the number of documents generated as a result of this map reduce- Returns:
- the number of documents output by the map reduce
 
- 
getEmitCountpublic int getEmitCount()Deprecated.Get the number of messages emitted from the provided map function.- Returns:
- the number of items emitted from the map function
 
 
-