Class: Mongo::Operation::Read::GetMore

Inherits:
Object
  • Object
show all
Includes:
Executable, Specifiable
Defined in:
lib/mongo/operation/read/get_more.rb

Overview

A MongoDB get more operation.

Initialization:

param [ Hash ] spec The specifications for the operation.

option spec :to_return [ Integer ] The number of results to return.
option spec :cursor_id [ Integer ] The id of the cursor.
option spec :db_name [ String ] The name of the database on which
  the operation should be executed.
option spec :coll_name [ String ] The name of the collection on which
  the operation should be executed.

Examples:

Create a get more operation.

Read::GetMore.new({
  :to_return => 50,
  :cursor_id => 1,
  :db_name   => 'test_db',
  :coll_name => 'test_coll'
})

Since:

  • 2.0.0

Constant Summary

Constants included from Specifiable

Specifiable::BYPASS_DOC_VALIDATION, Specifiable::COLLATION, Specifiable::COLL_NAME, Specifiable::CURSOR_COUNT, Specifiable::CURSOR_ID, Specifiable::CURSOR_IDS, Specifiable::DB_NAME, Specifiable::DELETE, Specifiable::DELETES, Specifiable::DOCUMENTS, Specifiable::INDEX, Specifiable::INDEXES, Specifiable::INDEX_NAME, Specifiable::MAX_TIME_MS, Specifiable::OPERATION_ID, Specifiable::OPTIONS, Specifiable::READ, Specifiable::READ_CONCERN, Specifiable::SELECTOR, Specifiable::TO_RETURN, Specifiable::UPDATE, Specifiable::UPDATES, Specifiable::USER, Specifiable::USER_NAME, Specifiable::WRITE_CONCERN

Instance Attribute Summary

Attributes included from Specifiable

#spec

Method Summary

Methods included from Executable

#execute

Methods included from Specifiable

#==, #bypass_document_validation, #coll_name, #collation, #cursor_count, #cursor_id, #cursor_ids, #db_name, #delete, #deletes, #documents, #index, #index_name, #indexes, #initialize, #max_time_ms, #namespace, #operation_id, #options, #ordered?, #read, #read_concern, #selector, #to_return, #update, #updates, #user, #user_name, #write_concern