MapReduceOutputMode Enumeration |
Represents the map-reduce output mode.
Namespace:
MongoDB.Driver.Core.Operations
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax public enum MapReduceOutputMode
Public Enumeration MapReduceOutputMode
Members
| Member name | Value | Description |
---|
| Replace | 0 |
The output of the map-reduce operation replaces the output collection.
|
| Merge | 1 |
The output of the map-reduce operation is merged with the output collection.
If an existing document has the same key as the new result, overwrite the existing document.
|
| Reduce | 2 |
The output of the map-reduce operation is merged with the output collection.
If an existing document has the same key as the new result, apply the reduce function to both
the new and the existing documents and overwrite the existing document with the result.
|
See Also