Class SortArgs

    • Constructor Detail

      • SortArgs

        public SortArgs()
    • Method Detail

      • ascending

        public SortArgs ascending()
        Use ASC order (from small to large).
        Returns:
        the current SortArgs
      • descending

        public SortArgs descending()
        Use DESC order (from large to small).
        Returns:
        the current SortArgs
      • limit

        public SortArgs limit​(SortArgs.Limit limit)
        Sets the limit option.
        Parameters:
        limit - the limit value
        Returns:
        the current SortArgs
      • limit

        public SortArgs limit​(long offset,
                              long count)
        Sets the limit option using the offset and count.
        Parameters:
        offset - the offset (zero-based)
        count - the number of element
        Returns:
        the current SortArgs
      • limit

        public SortArgs limit​(long count)
        Sets the limit option with only the number of elements.
        Parameters:
        count - the number of elements
        Returns:
        the current SortArgs
      • alpha

        public SortArgs alpha()
        When the list contains string values and you want to sort them lexicographically, use the ALPHA modifier.
        Returns:
        the current SortArgs
      • by

        public SortArgs by​(String by)
        Sets the BY pattern.
        Parameters:
        by - the by value
        Returns:
        the current SortArgs
      • get

        public SortArgs get​(List<String> get)
        Sets the GET option. Retrieving external keys based on the elements in a list, set or sorted set can be done using the {code GET} options. The GET option can be used multiple times in order to get more keys for every element of the original list, set or sorted set. It is also possible to GET the element itself using the special pattern #
        Parameters:
        get - the get value
        Returns:
        the current SortArgs
      • get

        public SortArgs get​(String get)
        Adds a GET option. Retrieving external keys based on the elements in a list, set or sorted set can be done using the {code GET} options. The GET option can be used multiple times in order to get more keys for every element of the original list, set or sorted set. It is also possible to GET the element itself using the special pattern #
        Parameters:
        get - the get value
        Returns:
        the current SortArgs