Class ZAddArgs

    • Constructor Detail

      • ZAddArgs

        public ZAddArgs()
    • 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
      • putFlag

        public void putFlag​(List<String> args,
                            boolean value,
                            String flag)