Class ZSetCommonUtils

java.lang.Object
org.infinispan.server.resp.commands.sortedset.ZSetCommonUtils

public final class ZSetCommonUtils extends Object
  • Field Details

    • WITHSCORES

      public static final byte[] WITHSCORES
    • EXCLUDE

      public static final byte EXCLUDE
      See Also:
  • Method Details

    • isWithScoresArg

      public static boolean isWithScoresArg(byte[] arg)
    • parseLex

      public static ZSetCommonUtils.Lex parseLex(byte[] arg)
    • parseScore

      public static ZSetCommonUtils.Score parseScore(byte[] arg)
    • response

      public static ZSetCommonUtils.ZOperationResponse response(Collection<ScoredValue<byte[]>> scoredValues, boolean withScores)
      Transforms the resulting collection depending on the zrank options - return scores - limit results
      Parameters:
      scoredValues - , scoresValues retrieved
      withScores - , return with scores
      Returns:
      The Z operation response object to serialize in the RESP3 format.