[JAVA-5047] MongoBatchCursorAdapter with setBatchSize and getBatchSize Created: 30/Jun/23 Updated: 03/Jul/23 |
|
| Status: | Backlog |
| Project: | Java Driver |
| Component/s: | Query Operations |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Unknown |
| Reporter: | Dominik Herbst | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
| Description |
|
We would like to implement an automatic adaption of the cursor size during iteration. But the sync-driver is not exposing the methods necessary. When using FindIterable or AggregateIterable .iterator() a new MongoBatchCursorAdapter instance is created. But it hides the setBatchSize and getBatchSize methods of the BatchCursor, which it wraps. We can only use these methods using undesired reflection to access the private batchCursor field of the MongoBatchCursorAdapter. It would be great to have these batch size methods available in the MongoBatchCursorAdapter.
|
| Comments |
| Comment by Ashni Mehta [ 03/Jul/23 ] |
|
Hi hed1wa3@bosch.com - thank you for filing this feature request! I'll take it back to the team and we can discuss possible prioritization. I'll drop updates on this ticket as we have them, and I will leave this ticket in Backlog to gather additional votes and comments from the community. In the meantime, if you have additional details on your use case, please reach out. |
| Comment by PM Bot [ 30/Jun/23 ] |
|
Hi hed1wa3@bosch.com, thank you for reporting this issue! The team will look into it and get back to you soon. |