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 BITOP command #1458

Merged
merged 3 commits into from
May 24, 2024
Merged

Conversation

GumpacG
Copy link
Collaborator

@GumpacG GumpacG commented May 24, 2024

Issue #, if available:
N/A

Description of changes:
Implements BITOP command in the java client.

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

@GumpacG GumpacG requested a review from a team as a code owner May 24, 2024 16:31
* Incomplete implementation

* Needs more tests and javadocs

* Fixed errors from rebasing

* Added tests and javadocs

* Fixed incorrect comment

* Added tests

* Fixed tests

* Spotless

* Added to module-info
@Yury-Fridlyand Yury-Fridlyand added the java issues and fixes related to the java client label May 24, 2024
* <pre>{@code
* client.set("key1", "A"); // "A" has binary value 01000001
* client.set("key2", "B"); // "B" has binary value 01000010
* Long payload = client.bitop(BitwiseOperation.AND, "destination", new String[] {key1, key2}).get();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* Long payload = client.bitop(BitwiseOperation.AND, "destination", new String[] {key1, key2}).get();
* Long payload = client.bitop(AND, "destination", new String[] {key1, key2}).get();

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Don't we want to specify the enum in the example?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not necessary. It's defined in the function and should be easy peasy to look up.

@acarbonetto acarbonetto merged commit 7e1e04d into aws:main May 24, 2024
46 checks passed
@acarbonetto acarbonetto deleted the java/integ_guiang_bitop branch May 24, 2024 20:46
cyip10 pushed a commit to Bit-Quill/glide-for-redis that referenced this pull request Jun 24, 2024
* Java: Add `BITOP` command (#303)

* Incomplete implementation

* Needs more tests and javadocs

* Fixed errors from rebasing

* Added tests and javadocs

* Fixed incorrect comment

* Added tests

* Fixed tests

* Spotless

* Added to module-info

* Addressed PR comments

* Added TODO:
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.

None yet

4 participants