Package glide.api.models.commands
Class WeightAggregateOptions.WeightedKeys
- java.lang.Object
-
- glide.api.models.commands.WeightAggregateOptions.WeightedKeys
-
- All Implemented Interfaces:
WeightAggregateOptions.KeysOrWeightedKeys
- Enclosing class:
- WeightAggregateOptions
public static class WeightAggregateOptions.WeightedKeys extends java.lang.Object implements WeightAggregateOptions.KeysOrWeightedKeys
Represents the mapping of sorted set keys to their score weights. Each weight is used to boost the scores of elements in the corresponding sorted set by multiplying them before their scores are aggregated.
-
-
Constructor Summary
Constructors Constructor Description WeightedKeys(java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,java.lang.Double>> keysWeights)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]toArgs()Convert to command arguments according to the Valkey API.
-
-
-
Method Detail
-
toArgs
public java.lang.String[] toArgs()
Description copied from interface:WeightAggregateOptions.KeysOrWeightedKeysConvert to command arguments according to the Valkey API.- Specified by:
toArgsin interfaceWeightAggregateOptions.KeysOrWeightedKeys
-
-