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

Java: Add Zdiffstore command. (Sorted Set Group) #1244

Merged
merged 6 commits into from
Apr 11, 2024

Conversation

SanHalacogluImproving
Copy link
Contributor

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@SanHalacogluImproving SanHalacogluImproving requested a review from a team as a code owner April 8, 2024 19:56
@Yury-Fridlyand Yury-Fridlyand added the java issues and fixes related to the java client label Apr 8, 2024
@acarbonetto acarbonetto changed the title Java: Add Zdiffstore command. (Sorted Set Group) (#185) Java: Add Zdiffstore command. (Sorted Set Group) Apr 8, 2024
@SanHalacogluImproving SanHalacogluImproving force-pushed the java/integ_SanH_add_Zdiffstore branch from 3cb737b to 9bfcf12 Compare April 10, 2024 22:35
Copy link
Contributor

@acarbonetto acarbonetto left a comment

Choose a reason for hiding this comment

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

minor nit comments

CHANGELOG.md Outdated Show resolved Hide resolved
* assert payload > 0; // At least one member differed in "key1" compared to "key2", and this difference was stored in "mySortedSet".
* }</pre>
*/
CompletableFuture<Long> zdiffstore(String destination, String[] keys);
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to swap keys and destination? I think it's easier to understand. Redis uses this ordering because they have a varargs on the keys, but we don't need to restrict ourselves.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't think so. We have stuck to the Redis ordering up to this point. Does not make sense to change it now.

@acarbonetto acarbonetto force-pushed the java/integ_SanH_add_Zdiffstore branch from 0aaa283 to c34e66c Compare April 11, 2024 20:50
Signed-off-by: Andrew Carbonetto <[email protected]>
@acarbonetto acarbonetto merged commit 5e609a1 into valkey-io:main Apr 11, 2024
45 checks passed
@acarbonetto acarbonetto deleted the java/integ_SanH_add_Zdiffstore branch April 11, 2024 21:19
alex-arzola-imp pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Apr 12, 2024
* Java: Add Zdiffstore command. (Sorted Set Group) (#185)

* Minor documentation + minor IT test update.

* Changelog revert.

* Rebase + Spotless

* Minor documentation update + minor TransactionTests update + revert CHANGELOG.md

* SPOTLESS

Signed-off-by: Andrew Carbonetto <[email protected]>

---------

Signed-off-by: Andrew Carbonetto <[email protected]>
Co-authored-by: Andrew Carbonetto <[email protected]>
cyip10 pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 24, 2024
* Java: Add Zdiffstore command. (Sorted Set Group) (#185)

* Minor documentation + minor IT test update.

* Changelog revert.

* Rebase + Spotless

* Minor documentation update + minor TransactionTests update + revert CHANGELOG.md

* SPOTLESS

Signed-off-by: Andrew Carbonetto <[email protected]>

---------

Signed-off-by: Andrew Carbonetto <[email protected]>
Co-authored-by: Andrew Carbonetto <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java issues and fixes related to the java client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants