Constructor MapReduceOperation
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
MapReduceOperation(CollectionNamespace, BsonJavaScript, BsonJavaScript, IBsonSerializer<TResult>, MessageEncoderSettings)
Initializes a new instance of the MapReduceOperation<TResult> class.
public MapReduceOperation(CollectionNamespace collectionNamespace, BsonJavaScript mapFunction, BsonJavaScript reduceFunction, IBsonSerializer<TResult> resultSerializer, MessageEncoderSettings messageEncoderSettings)
Parameters
collectionNamespace
CollectionNamespaceThe collection namespace.
mapFunction
BsonJavaScriptThe map function.
reduceFunction
BsonJavaScriptThe reduce function.
resultSerializer
IBsonSerializer<TResult>The result serializer.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.