Class Mongo::BulkWrite::ResultCombiner
In: lib/mongo/bulk_write/result_combiner.rb
Parent: Object

Combines bulk write results together.

@api private

@since 2.1.0

Methods

combine!   new   result  

Attributes

count  [R]  @return [ Integer ] count The number of documents in the entire batch.
results  [R]  @return [ Hash ] results The results hash.

Public Class methods

Create the new result combiner.

@api private

@example Create the result combiner.

  ResultCombiner.new

@since 2.1.0

Public Instance methods

Adds a result to the overall results.

@api private

@example Add the result.

  combiner.combine!(result, count)

@param [ Operation::Result ] result The result to combine. @param [ Integer ] count The count of requests in the batch.

@since 2.1.0

Get the final result.

@api private

@example Get the final result.

  combinator.result

@return [ BulkWrite::Result ] The final result.

@since 2.1.0

[Validate]