Class MapReduceOutputOptions
Represents the output options for a map-reduce operation.
[Obsolete("Use Aggregation pipeline instead.")]
public abstract class MapReduceOutputOptions
- Inheritance
-
MapReduceOutputOptions
- Inherited Members
Properties
Inline
An inline map-reduce output options.
public static MapReduceOutputOptions Inline { get; }
Property Value
Methods
Merge(string, string)
A merge map-reduce output options.
public static MapReduceOutputOptions Merge(string collectionName, string databaseName)
Parameters
Returns
- MapReduceOutputOptions
A merge map-reduce output options.
Merge(string, string, bool?, bool?)
A merge map-reduce output options.
[Obsolete("Use an overload of Merge that does not have sharded and nonAtomic parameters instead.")]
public static MapReduceOutputOptions Merge(string collectionName, string databaseName = null, bool? sharded = null, bool? nonAtomic = null)
Parameters
collectionNamestringThe name of the collection.
databaseNamestringThe name of the database.
shardedbool?Whether the output collection should be sharded.
nonAtomicbool?Whether the server should not lock the database for the duration of the merge.
Returns
- MapReduceOutputOptions
A merge map-reduce output options.
Reduce(string, string)
A reduce map-reduce output options.
public static MapReduceOutputOptions Reduce(string collectionName, string databaseName)
Parameters
Returns
- MapReduceOutputOptions
A reduce map-reduce output options.
Reduce(string, string, bool?, bool?)
A reduce map-reduce output options.
[Obsolete("Use an overload of Reduce that does not have sharded and nonAtomic parameters instead.")]
public static MapReduceOutputOptions Reduce(string collectionName, string databaseName = null, bool? sharded = null, bool? nonAtomic = null)
Parameters
collectionNamestringThe name of the collection.
databaseNamestringThe name of the database.
shardedbool?Whether the output collection should be sharded.
nonAtomicbool?Whether the server should not lock the database for the duration of the reduce.
Returns
- MapReduceOutputOptions
A reduce map-reduce output options.
Replace(string, string)
A replace map-reduce output options.
public static MapReduceOutputOptions Replace(string collectionName, string databaseName)
Parameters
Returns
- MapReduceOutputOptions
A replace map-reduce output options.
Replace(string, string, bool?)
A replace map-reduce output options.
[Obsolete("Use an overload of Replace that does not have a sharded parameter instead.")]
public static MapReduceOutputOptions Replace(string collectionName, string databaseName = null, bool? sharded = null)
Parameters
collectionNamestringThe name of the collection.
databaseNamestringName of the database.
shardedbool?Whether the output collection should be sharded.
Returns
- MapReduceOutputOptions
A replace map-reduce output options.