Class: Mongo::BulkWrite::UnorderedCombiner Private
- Inherits:
-
Object
- Object
- Mongo::BulkWrite::UnorderedCombiner
- Includes:
- Combineable, Transformable, Validatable
- Defined in:
- build/ruby-driver-v2.19/lib/mongo/bulk_write/unordered_combiner.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Combines groups of bulk write operations in no order.
Constant Summary
Constants included from Transformable
Transformable::DELETE_MANY, Transformable::DELETE_MANY_TRANSFORM, Transformable::DELETE_ONE, Transformable::DELETE_ONE_TRANSFORM, Transformable::INSERT_ONE, Transformable::INSERT_ONE_TRANSFORM, Transformable::MAPPERS, Transformable::REPLACE_ONE, Transformable::REPLACE_ONE_TRANSFORM, Transformable::UPDATE_MANY, Transformable::UPDATE_MANY_TRANSFORM, Transformable::UPDATE_ONE, Transformable::UPDATE_ONE_TRANSFORM
Instance Attribute Summary
Attributes included from Combineable
Instance Method Summary collapse
-
#combine ⇒ Array<Hash>
private
Combine the requests in order.
Methods included from Combineable
#has_array_filters?, #has_collation?, #has_hint?, #initialize
Methods included from Validatable
Instance Method Details
#combine ⇒ Array<Hash>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Combine the requests in order.
41 42 43 44 45 |
# File 'build/ruby-driver-v2.19/lib/mongo/bulk_write/unordered_combiner.rb', line 41 def combine combine_requests({}).map do |name, ops| { name => ops } end end |