Class ZAddArgs
- java.lang.Object
-
- io.quarkus.redis.datasource.sortedset.ZAddArgs
-
- All Implemented Interfaces:
RedisCommandExtraArguments
public class ZAddArgs extends Object implements RedisCommandExtraArguments
-
-
Constructor Summary
Constructors Constructor Description ZAddArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZAddArgsch()Modify the return value from the number of new elements added, to the total number of elements changed (CH is an abbreviation of changed).ZAddArgsgt()Only update existing elements if the new score is greater than the current score.ZAddArgslt()Only update existing elements if the new score is less than the current score.ZAddArgsnx()Only add new elements.voidputFlag(List<String> args, boolean value, String flag)List<String>toArgs()ZAddArgsxx()Only update elements that already exist.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
-
-
-
Method Detail
-
nx
public ZAddArgs nx()
Only add new elements. Don't update already existing elements.- Returns:
- the current
ZAddArgs
-
xx
public ZAddArgs xx()
Only update elements that already exist. Don't add new elements.- Returns:
- the current
ZAddArgs
-
ch
public ZAddArgs ch()
Modify the return value from the number of new elements added, to the total number of elements changed (CH is an abbreviation of changed). Changed elements are new elements added and elements already existing for which the score was updated. So elements specified in the command line having the same score as they had in the past are not counted.- Returns:
- the current
ZAddArgs
-
lt
public ZAddArgs lt()
Only update existing elements if the new score is less than the current score. This flag doesn't prevent adding new elements.- Returns:
- the current
ZAddArgs
-
gt
public ZAddArgs gt()
Only update existing elements if the new score is greater than the current score. This flag doesn't prevent adding new elements.- Returns:
- the current
ZAddArgs
-
toArgs
public List<String> toArgs()
- Specified by:
toArgsin interfaceRedisCommandExtraArguments- Returns:
- the list of arguments, encoded as a list of String.
-
-