Method: Mongo::BulkWrite::Combineable#initialize

Defined in:
lib/mongo/bulk_write/combineable.rb

#initialize(requests) ⇒ Object

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.

Create the ordered combiner.

Examples:

Create the ordered combiner.

OrderedCombiner.new([{ insert_one: { _id: 0 }}])

Parameters:

  • requests (Array<Hash, BSON::Document>)

    The bulk requests.

Since:

  • 2.1.0



41
42
43
44
45
46
# File 'lib/mongo/bulk_write/combineable.rb', line 41

def initialize(requests)
  @requests = requests
  @has_collation = false
  @has_array_filters = false
  @has_hint = false
end