Class ZSetCommonUtils
java.lang.Object
org.infinispan.server.resp.commands.sortedset.ZSetCommonUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisWithScoresArg(byte[] arg) static List<byte[]> mapResultsToArrayList(Collection<org.infinispan.multimap.impl.ScoredValue<byte[]>> scoredValues, boolean withScores) Transforms the resulting collection depending on the zrank options - return scores - limit resultsstatic ZSetCommonUtils.LexparseLex(byte[] arg) static ZSetCommonUtils.ScoreparseScore(byte[] arg)
-
Field Details
-
WITHSCORES
public static final byte[] WITHSCORES -
EXCLUDE
public static byte EXCLUDE
-
-
Method Details
-
isWithScoresArg
public static boolean isWithScoresArg(byte[] arg) -
parseLex
-
parseScore
-
mapResultsToArrayList
public static List<byte[]> mapResultsToArrayList(Collection<org.infinispan.multimap.impl.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:
- byte[] list to be returned by the command
-