Class MapReduceResult
Represents the result of a map-reduce command.
[Obsolete("Use Aggregation pipeline instead.")]
[BsonSerializer(typeof(CommandResultSerializer<MapReduceResult>))]
public class MapReduceResult : CommandResult
- Inheritance
-
MapReduceResult
- Inherited Members
- Extension Methods
Constructors
MapReduceResult(BsonDocument)
Initializes a new instance of the MapReduceResult class.
public MapReduceResult(BsonDocument response)
Parameters
response
BsonDocumentThe response.
Properties
CollectionName
Gets the output collection name (null if none).
public string CollectionName { get; }
Property Value
DatabaseName
Gets the output database name (null if none).
public string DatabaseName { get; }
Property Value
Duration
Gets the duration.
[Obsolete("Duration is not available on server versions 4.4.0 and newer.")]
public TimeSpan Duration { get; }
Property Value
EmitCount
Gets the emit count.
[Obsolete("EmitCount is not available on server versions 4.4.0 and newer.")]
public long EmitCount { get; }
Property Value
InlineResults
Gets the inline results.
public IEnumerable<BsonDocument> InlineResults { get; }
Property Value
InputCount
Gets the input count.
[Obsolete("InputCount is not available on server versions 4.4.0 and newer.")]
public long InputCount { get; }
Property Value
OutputCount
Gets the output count.
[Obsolete("OutputCount is not available on server versions 4.4.0 and newer.")]
public long OutputCount { get; }
Property Value
Methods
GetInlineResultsAs(Type)
Gets the inline results as TDocuments.
public IEnumerable<object> GetInlineResultsAs(Type documentType)
Parameters
documentType
TypeThe type of the documents.
Returns
- IEnumerable<object>
The documents.
GetInlineResultsAs<TDocument>()
Gets the inline results as TDocuments.
public IEnumerable<TDocument> GetInlineResultsAs<TDocument>()
Returns
- IEnumerable<TDocument>
The documents.
Type Parameters
TDocument
The type of the documents.
GetResults()
Gets the results (either inline or fetched from the output collection).
public IEnumerable<BsonDocument> GetResults()
Returns
- IEnumerable<BsonDocument>
The documents.
GetResultsAs(Type)
Gets the results as TDocuments (either inline or fetched from the output collection).
public IEnumerable<object> GetResultsAs(Type documentType)
Parameters
documentType
TypeThe type of the documents.
Returns
- IEnumerable<object>
The documents.
GetResultsAs<TDocument>()
Gets the results as TDocuments (either inline or fetched from the output collection).
public IEnumerable<TDocument> GetResultsAs<TDocument>()
Returns
- IEnumerable<TDocument>
The documents.
Type Parameters
TDocument
The type of the documents.