class Mongo::Operation::Commands::ParallelScan
A MongoDB parallel scan operation.
@example Create
the parallel scan operation.
ParallelScan.new({ :db_name => 'test_db', :coll_name = > 'test_collection', :cursor_count => 5 })
Initialization:
param [ Hash ] spec The specifications for the operation. option spec :db_name [ String ] The name of the database on which the operation should be executed. option spec :coll_name [ String ] The collection to scan. option spec :cursor_count [ Integer ] The number of cursors to use. option spec :options [ Hash ] Options for the command.
@since 2.0.0
Private Instance Methods
selector()
click to toggle source
# File lib/mongo/operation/commands/parallel_scan.rb, line 43 def selector command = { :parallelCollectionScan => coll_name, :numCursors => cursor_count } command[:readConcern] = read_concern if read_concern command[:maxTimeMS] = max_time_ms if max_time_ms command end