class Mongo::Operation::ParallelScan::Command
A MongoDB parallelscan 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/parallel_scan/command.rb, line 46 def message(connection) Protocol::Query.new(db_name, Database::COMMAND, command(connection), options(connection)) end
selector(connection)
click to toggle source
# File lib/mongo/operation/parallel_scan/command.rb, line 36 def selector(connection) sel = { :parallelCollectionScan => coll_name, :numCursors => cursor_count } if read_concern sel[:readConcern] = Options::Mapper.transform_values_to_strings( read_concern) end sel[:maxTimeMS] = max_time_ms if max_time_ms add_read_preference_legacy(sel, connection) end