-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
implemented zpopmax, zpopmax with count #1968
Conversation
src/test/java/redis/clients/jedis/tests/commands/SortedSetCommandsTest.java
Outdated
Show resolved
Hide resolved
src/test/java/redis/clients/jedis/tests/commands/SortedSetCommandsTest.java
Outdated
Show resolved
Hide resolved
src/test/java/redis/clients/jedis/tests/commands/SortedSetCommandsTest.java
Outdated
Show resolved
Hide resolved
src/test/java/redis/clients/jedis/tests/commands/SortedSetCommandsTest.java
Outdated
Show resolved
Hide resolved
Have a look, please. |
LGTM! |
Any ETA on when this will be merged? @gkorland |
@@ -285,6 +285,24 @@ public String toString() { | |||
|
|||
}; | |||
|
|||
public static final Builder<Tuple> TUPLE = new Builder<Tuple>() { |
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.
@z0mg can you please add a comment about the different between TUPLE_ZSET and TUPLE?
Or perhaps we better even rename this builder?
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.
@gkorland ZPOPMAX and ZPOPMIN without count returns only one Tuple. Returning a Tuple should be better instead of returning a Set of single Tuple. This builder helps on that purpose.
Added tests under redis.clients.jedis.tests.commands.SortedSetCommandsTest.
Tried mimicking other binary asserts, but it looks like you can use any value for
expected.add(SafeEncoder.encode("x"));
, they'll all pass.