Module: Mongo::BulkWrite::Combineable Private
- Included in:
- OrderedCombiner, UnorderedCombiner
- Defined in:
- lib/mongo/bulk_write/combineable.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defines behaviour around combiners
Instance Attribute Summary collapse
-
#has_collation ⇒ true, false
readonly
private
Has_collation Whether one or more operations has a collation defined.
-
#requests ⇒ Array<Hash, BSON::Document>
readonly
private
Requests The provided requests.
Instance Method Summary collapse
-
#initialize(requests) ⇒ Object
private
Create the ordered combiner.
Instance Attribute Details
#has_collation ⇒ true, false (readonly)
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.
Returns has_collation Whether one or more operations has a collation defined.
29 30 31 |
# File 'lib/mongo/bulk_write/combineable.rb', line 29 def has_collation @has_collation end |
#requests ⇒ Array<Hash, BSON::Document> (readonly)
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.
Returns requests The provided requests.
26 27 28 |
# File 'lib/mongo/bulk_write/combineable.rb', line 26 def requests @requests end |
Instance Method Details
#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.
41 42 43 44 |
# File 'lib/mongo/bulk_write/combineable.rb', line 41 def initialize(requests) @requests = requests @has_collation = false end |