class Mongo::Operation::MapReduce::Command
A MongoDB mapreduce operation sent as a command message.
@api private
@since 2.5.2
Private Instance Methods
message(connection)
click to toggle source
# File lib/mongo/operation/map_reduce/command.rb, line 45 def message(connection) Protocol::Query.new(db_name, Database::COMMAND, command(connection), options(connection)) end
selector(connection)
click to toggle source
Calls superclass method
Mongo::Operation::Specifiable#selector
# File lib/mongo/operation/map_reduce/command.rb, line 37 def selector(connection) super.tap do |selector| if selector[:collation] && !connection.features.collation_enabled? raise Error::UnsupportedCollation end end end