Class ZSetCommonUtils
java.lang.Object
org.infinispan.server.resp.commands.sortedset.ZSetCommonUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static final record
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isWithScoresArg
(byte[] arg) static ZSetCommonUtils.Lex
parseLex
(byte[] arg) static ZSetCommonUtils.Score
parseScore
(byte[] arg) response
(Collection<ScoredValue<byte[]>> scoredValues, boolean withScores) Transforms the resulting collection depending on the zrank options - return scores - limit results
-
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
-
parseScore
-
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 retrievedwithScores
- , return with scores- Returns:
- The Z operation response object to serialize in the RESP3 format.
-