Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add limit option to ScanCursor #2014

Closed
wants to merge 6 commits into from
Closed

Add limit option to ScanCursor #2014

wants to merge 6 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Mar 23, 2021

Also, let Cursor extend CloseableIterator and deprecate Cursor.open (for removal from the public Cursor API).

Closes #1575

mp911de and others added 6 commits March 25, 2021 09:32
ScanCursor can be now limited to a maximum number of elements to be retrieved.

Closes #1575
Let Cursor extend CloseableCursor. Refine nullability annotations and align nullability behavior in tests with actual nullability usage.
This method should not be called from code consuming the Cursor.
This commit moves the limit field to the delegating sub class. This way it is possible to override the newly introduced limitReached(long) method without polluting the ScanCursor implementation with the limit check itself.
christophstrobl pushed a commit that referenced this pull request Mar 25, 2021
ScanCursor can be now limited to a maximum number of elements to be retrieved.

Closes: #1575
Original Pull Request: #2014
christophstrobl pushed a commit that referenced this pull request Mar 25, 2021
Let Cursor extend CloseableCursor. Refine nullability annotations and align nullability behavior in tests with actual nullability usage.

See: #1575
Original Pull Request: #2014
christophstrobl pushed a commit that referenced this pull request Mar 25, 2021
This method should not be called from code consuming the Cursor.

See: #1575
Original Pull Request: #2014
christophstrobl added a commit that referenced this pull request Mar 25, 2021
@christophstrobl christophstrobl deleted the issue/1575 branch March 25, 2021 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add limit option to ScanCursor. [DATAREDIS-1004]
3 participants