-
Type: New Feature
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: Query Operations
-
None
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.