-
Notifications
You must be signed in to change notification settings - Fork 35
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
Java: Add BITOP
command
#1458
Conversation
a96dd87
to
4895885
Compare
java/client/src/main/java/glide/api/commands/BitmapBaseCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/main/java/glide/api/models/commands/bitmap/BitwiseOperation.java
Outdated
Show resolved
Hide resolved
* <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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Long payload = client.bitop(BitwiseOperation.AND, "destination", new String[] {key1, key2}).get(); | |
* Long payload = client.bitop(AND, "destination", new String[] {key1, key2}).get(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
* 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:
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.