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

Return List instead of Set in ZDIFF, ZINTER, ZUNION #3431

Merged
merged 8 commits into from
May 30, 2023

Conversation

sazzad16
Copy link
Collaborator

@sazzad16 sazzad16 commented May 21, 2023

Closes #3083

- zdiff, zinter, zunion methods now return List instead of Set
- ...store methods are renamed to ...Store
- ...card methods are renamed to ...Card
@sazzad16 sazzad16 added breakingchange Pull request that has breaking changes. Must include the breaking behavior in release notes. maintenance labels May 21, 2023
@sazzad16 sazzad16 added this to the 5.0.0 milestone May 21, 2023
@sazzad16 sazzad16 force-pushed the z-commands-order branch from 7aed3a0 to 68d8bbe Compare May 22, 2023 11:57
@codecov-commenter
Copy link

codecov-commenter commented May 22, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.12 ⚠️

Comparison is base (5164a89) 68.07% compared to head (02c4d51) 67.95%.

❗ Current head 02c4d51 differs from pull request most recent head 2ab2f21. Consider uploading reports for the commit 2ab2f21 to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3431      +/-   ##
============================================
- Coverage     68.07%   67.95%   -0.12%     
+ Complexity     4543     4537       -6     
============================================
  Files           275      275              
  Lines         14597    14593       -4     
  Branches        978      977       -1     
============================================
- Hits           9937     9917      -20     
- Misses         4248     4265      +17     
+ Partials        412      411       -1     
Impacted Files Coverage Δ
.../main/java/redis/clients/jedis/BuilderFactory.java 75.19% <ø> (-0.81%) ⬇️
src/main/java/redis/clients/jedis/Jedis.java 85.46% <ø> (ø)
...rc/main/java/redis/clients/jedis/PipelineBase.java 27.09% <ø> (ø)
...main/java/redis/clients/jedis/TransactionBase.java 12.50% <ø> (ø)
...rc/main/java/redis/clients/jedis/UnifiedJedis.java 71.62% <ø> (ø)
...is/clients/jedis/commands/SetPipelineCommands.java 0.00% <ø> (ø)
...lients/jedis/commands/SortedSetBinaryCommands.java 100.00% <ø> (ø)
...edis/clients/jedis/commands/SortedSetCommands.java 100.00% <ø> (ø)
...edis/commands/SortedSetPipelineBinaryCommands.java 0.00% <ø> (ø)
...ents/jedis/commands/SortedSetPipelineCommands.java 0.00% <ø> (ø)
... and 1 more

... and 2 files with indirect coverage changes

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

docs/jedis5-breaking.md Outdated Show resolved Hide resolved
Comment on lines +21 to +31
- `zdiff(String... keys)` method now returns `List<String>` (instead of `Set<String>`).
- `zdiff(byte[]... keys)` method now returns `List<byte[]>` (instead of `Set<byte[]>`).
- Both `zdiffWithScores(String... keys)` and `zdiffWithScores(byte[]... keys)` methods now return `List<Tuple>` (instead of `Set<Tuple>`).

- `zinter(ZParams params, String... keys)` method now returns `List<String>` (instead of `Set<String>`).
- `zinter(ZParams params, byte[]... keys)` method now returns `List<byte[]>` (instead of `Set<byte[]>`).
- Both `zinterWithScores(ZParams params, String... keys)` and `zinterWithScores(ZParams params, byte[]... keys)` methods now return `List<Tuple>` (instead of `Set<Tuple>`).

- `zunion(ZParams params, String... keys)` method now returns `List<String>` (instead of `Set<String>`).
- `zunion(ZParams params, byte[]... keys)` method now returns `List<byte[]>` (instead of `Set<byte[]>`).
- Both `zunionWithScores(ZParams params, String... keys)` and `zunionWithScores(ZParams params, byte[]... keys)` methods now return `List<Tuple>` (instead of `Set<Tuple>`).
Copy link
Collaborator

Choose a reason for hiding this comment

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

LGTM

sazzad16 added 4 commits May 28, 2023 22:32
 Conflicts:
	src/main/java/redis/clients/jedis/MultiNodePipelineBase.java
	src/main/java/redis/clients/jedis/Pipeline.java
	src/test/java/redis/clients/jedis/commands/jedis/SortedSetCommandsTest.java
	src/test/java/redis/clients/jedis/commands/unified/SortedSetCommandsTestBase.java
@sazzad16 sazzad16 changed the title Reformat sorted set methods Return List instead of Set in ZDIFF, ZINTER, ZUNION May 28, 2023
@sazzad16 sazzad16 requested a review from yangbodong22011 May 29, 2023 07:33
@sazzad16 sazzad16 merged commit c0c2ce2 into redis:master May 30, 2023
@sazzad16 sazzad16 deleted the z-commands-order branch May 30, 2023 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breakingchange Pull request that has breaking changes. Must include the breaking behavior in release notes. maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ZDIFF, ZINTER and ZUNION do not preserve correct ordering of returned members
3 participants