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 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).ZAddArgs
gt()
Only update existing elements if the new score is greater than the current score.ZAddArgs
lt()
Only update existing elements if the new score is less than the current score.ZAddArgs
nx()
Only add new elements.void
putFlag(List<Object> args, boolean value, String flag)
List<Object>
toArgs()
ZAddArgs
xx()
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<Object> toArgs()
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments.
-
-