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

Improvements to QueryCursor #61

Merged
merged 3 commits into from
Nov 8, 2023
Merged

Improvements to QueryCursor #61

merged 3 commits into from
Nov 8, 2023

Conversation

dabico
Copy link
Member

@dabico dabico commented Nov 7, 2023

Contains two major changes to execute APIs of QueryCursor:

  • Cursor will now reset on successive calls to execute, as opposed to doing nothing;
  • Two overloaded setRange methods were added to support narrower searches (by byte and Point range).

Subsequent calls to `execute` will now reset the cursor to its initial
state. The significance of this change might seem minute at first, but
will become apparent when we introduce the ability to limit searches to
a range of bytes or row/column coordinates.
These two new overloaded variants allow us to limit queries to a
narrower byte and position range. This could yield increased performance
when querying, as larger files can be broken up into several smaller
portions which are queried individually.
This had to be done to preserve the current functionality of the
`iterator()` method.
@dabico dabico merged commit 37db439 into master Nov 8, 2023
2 checks passed
@dabico dabico deleted the enhancement/querying branch November 8, 2023 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant