Skip to content

Support iteration for SCAN, FT.SEARCH, FT.AGGREGATE commands #3378

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

Merged
merged 3 commits into from
Apr 20, 2023

Conversation

sazzad16
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Apr 20, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (959cf6b) 67.29% compared to head (0fde43a) 67.30%.

❗ Current head 0fde43a differs from pull request most recent head 0960ddb. Consider uploading reports for the commit 0960ddb to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3378      +/-   ##
============================================
+ Coverage     67.29%   67.30%   +0.01%     
- Complexity     4716     4723       +7     
============================================
  Files           269      269              
  Lines         15232    15239       +7     
  Branches        963      963              
============================================
+ Hits          10250    10257       +7     
+ Misses         4564     4563       -1     
- Partials        418      419       +1     
Impacted Files Coverage Δ
...c/main/java/redis/clients/jedis/ScanIteration.java 100.00% <100.00%> (ø)
...rc/main/java/redis/clients/jedis/UnifiedJedis.java 74.37% <100.00%> (+0.10%) ⬆️
.../redis/clients/jedis/search/FtSearchIteration.java 87.50% <100.00%> (ø)
...lients/jedis/search/aggr/FtAggregateIteration.java 90.00% <100.00%> (ø)
.../clients/jedis/util/JedisCommandIterationBase.java 81.81% <100.00%> (ø)

... and 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sazzad16
Copy link
Contributor Author

@bsbodden @maorohana-redis Please check.


public class FtAggregateRoundRobin extends JedisRoundRobinBase<AggregationResult> {
public class FtAggregateIteration extends JedisCommandIterationBase<AggregationResult, Row> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bsbodden @maorohana-redis Also let me know whether you prefer Row or Map<String, Object> for aggregation replies.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the concept of Row since you could also pack any metadata about its results. Like in VSS for example, the score could come as part of Row but let's hear from Maor too.

@sazzad16 sazzad16 added this to the 4.4.0 milestone Apr 20, 2023
Copy link
Contributor

@bsbodden bsbodden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other tha potentially refining the ScanIteration class name

@sazzad16 sazzad16 requested a review from bsbodden April 20, 2023 17:23
Copy link
Contributor

@bsbodden bsbodden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sazzad16 sazzad16 merged commit 8b60f29 into redis:master Apr 20, 2023
@sazzad16 sazzad16 deleted the feature-rename-iteration branch April 20, 2023 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants