[JAVA-5159] Refactor batch cursors Created: 13/Sep/23  Updated: 10/Jan/24  Resolved: 09/Nov/23

Status: Closed
Project: Java Driver
Component/s: Internal
Affects Version/s: None
Fix Version/s: 5.0.0

Type: Improvement Priority: Unknown
Reporter: Ross Lawley Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by JAVA-4058 CSOT: Cursors and timeoutMode Closed
Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

The query result abstraction is no longer needed as only command cursors are used.

Objectives:

1) Align sync and async cursors. Currently, the async code is very different.
2) Simplify single list based batch cursors.
2) Simplify construction for future CSOT work.



 Comments   
Comment by Githook User [ 07/Dec/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Pull mongohouse image from ADL ECR repo (#1274)

Updated ADL test batch size assertion to match Java driver behavioral change introduced in JAVA-5159

JAVA-5235
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/9286233d5a6bc33c3a022c524810f04368118851

Comment by Githook User [ 09/Nov/23 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross@mongodb.com', 'username': 'rozza'}

Message: BatchCursor refactorings (#1246)

  • Added SingleBatchCursor
  • QueryResult and QueryBatchCursor renaming
  • Renamed and moved QueryResult to CommandCursorResult
  • Renamed QueryBatchCursor to CommandBatchCursor
  • Renamed AsyncQueryBatchCursor to AsyncCommandBatchCursor
  • Unified Async & Sync CommandBatchCursor testing
  • Added a CursorResourceManager for both Async & Sync

JAVA-5159
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/540c61261f2346ad2189ca1a51a11c518e2268b8

Generated at Thu Feb 08 09:03:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.