• Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      This relates closely with PHP-1183, as the default result iterator (which custom iterators might wrap) should be a Cursor object.

      Some implementation details based on the current API defined in PHP:

      • getId() can return null if there isn't a cursor (0 from OP_REPLY)
      • isDead() and setBatchSize() should be implemented (although most users won't ever call these)

      It should be possible to construct a Cursor object directly, if a user were to safe the Server hint and CursorId between PHP requests (e.g. in the session). The Cursor should also be constructed with an integer denoting how many results have been retrieved thus far and the client-side limit so that its OP_GET_MORE messages can request the correct number of documents and iteration can stop at the appropriate time.

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: