Skip to content

Commit

Permalink
Java: Add ZSCAN command (#397)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: James Duong <[email protected]>
  • Loading branch information
GumpacG and jduo committed Jun 29, 2024
1 parent 29914cb commit 51f3e35
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1370,6 +1370,12 @@ InfScoreBound.NEGATIVE_INFINITY, new ScoreBoundary(3, false), new Limit(1, 2)),
ZScanOptions.COUNT_OPTION_STRING,
"10")));

transaction.zscan("key1", "0");
results.add(Pair.of(ZScan, buildArgs("key1", "0")));

transaction.zscan("key1", "0", ZScanOptions.builder().matchPattern("*").count(10L).build());
results.add(Pair.of(ZScan, buildArgs("key1", "0", "MATCH", "*", "COUNT", "10")));

var protobufTransaction = transaction.getProtobufTransaction().build();

for (int idx = 0; idx < protobufTransaction.getCommandsCount(); idx++) {
Expand Down

0 comments on commit 51f3e35

Please sign in to comment.