Class: Mongo::BulkWrite::OrderedCombiner Private

Inherits:
Object
  • Object
show all
Includes:
Combineable, Transformable, Validatable
Defined in:
lib/mongo/bulk_write/ordered_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 order.

Since:

  • 2.1.0

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

#requests

Instance Method Summary collapse

Methods included from Combineable

#has_array_filters?, #has_collation?, #has_hint?, #initialize

Methods included from Validatable

#validate

Instance Method Details

#combineArray<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.

Examples:

Combine the requests.

combiner.combine

Returns:

  • (Array<Hash>)

    The combined requests.

Since:

  • 2.1.0



41
42
43
# File 'lib/mongo/bulk_write/ordered_combiner.rb', line 41

def combine
  combine_requests([])
end