class Mongo::Operation::ParallelScan::Command
A MongoDB parallelscan operation sent as a command message.
@api private
@since 2.5.2
Private Instance Methods
Source
# File lib/mongo/operation/parallel_scan/command.rb, line 44 def message(connection) Protocol::Query.new(db_name, Database::COMMAND, command(connection), options(connection)) end
Source
# File lib/mongo/operation/parallel_scan/command.rb, line 33 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 update_selector_for_read_pref(sel, connection) sel end