Class: Mongo::Collection::View
- Inherits:
-
Object
- Object
- Mongo::Collection::View
- Defined in:
- lib/dataflow/extensions/mongo_driver.rb
Instance Attribute Summary collapse
-
#cursor ⇒ Object
readonly
Returns the value of attribute cursor.
Instance Method Summary collapse
Instance Attribute Details
#cursor ⇒ Object (readonly)
Returns the value of attribute cursor.
5 6 7 |
# File 'lib/dataflow/extensions/mongo_driver.rb', line 5 def cursor @cursor end |
Instance Method Details
#initial_query ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/dataflow/extensions/mongo_driver.rb', line 7 def initial_query @cursor = nil result = nil read_with_retry do server = read.select_server(cluster, false) result = send_initial_query(server) @cursor = Cursor.new(view, result, server) end result end |