Table of Contents

Class MapReduceArgs

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

Represents arguments for the MapReduce command helper method.

[Obsolete("Use Aggregation pipeline instead.")]
public class MapReduceArgs
Inheritance
MapReduceArgs
Inherited Members
Extension Methods

Properties

BypassDocumentValidation

Gets or sets a value indicating whether to bypass document validation.

public bool? BypassDocumentValidation { get; set; }

Property Value

bool?

A value indicating whether to bypass document validation.

Collation

Gets or sets the collation.

public Collation Collation { get; set; }

Property Value

Collation

The collation.

FinalizeFunction

Gets or sets the finalize function.

public BsonJavaScript FinalizeFunction { get; set; }

Property Value

BsonJavaScript

JsMode

Gets or sets the JavaScript mode (if true all intermediate values are kept in memory as JavaScript objects).

[Obsolete("JsMode is ignored by server versions 4.4.0 and newer.")]
public bool? JsMode { get; set; }

Property Value

bool?

Limit

Gets or sets the limit.

public long? Limit { get; set; }

Property Value

long?

MapFunction

Gets or sets the map function.

public BsonJavaScript MapFunction { get; set; }

Property Value

BsonJavaScript

MaxTime

Gets or sets the max time.

public TimeSpan? MaxTime { get; set; }

Property Value

TimeSpan?

OutputCollectionName

Gets or sets the name of the output collection.

public string OutputCollectionName { get; set; }

Property Value

string

OutputDatabaseName

Gets or sets the name of the output database.

public string OutputDatabaseName { get; set; }

Property Value

string

OutputIsNonAtomic

Gets or sets a value indicating whether Merge and Reduce output should not be atomic.

[Obsolete("OutputIsNonAtomic is rejected by server versions 4.4.0 and newer.")]
public bool? OutputIsNonAtomic { get; set; }

Property Value

bool?

OutputIsSharded

Gets or sets a value indicating whether the output is sharded.

[Obsolete("OutputIsSharded is rejected by server versions 4.4.0 and newer.")]
public bool? OutputIsSharded { get; set; }

Property Value

bool?

OutputMode

Gets or sets the output mode.

public MapReduceOutputMode OutputMode { get; set; }

Property Value

MapReduceOutputMode

Query

Gets or sets the query.

public IMongoQuery Query { get; set; }

Property Value

IMongoQuery

ReduceFunction

Gets or sets the reduce function.

public BsonJavaScript ReduceFunction { get; set; }

Property Value

BsonJavaScript

Scope

Gets or sets the scope (variables available to the map-reduce functions);

public IMongoScope Scope { get; set; }

Property Value

IMongoScope

SortBy

Gets or sets the sort order.

public IMongoSortBy SortBy { get; set; }

Property Value

IMongoSortBy

Verbose

Gets or sets a value indicating whether to include extra information in the result (like timing).

public bool? Verbose { get; set; }

Property Value

bool?