Package glide.api.models.commands
Class WeightAggregateOptions.WeightedKeysBinary
- java.lang.Object
-
- glide.api.models.commands.WeightAggregateOptions.WeightedKeysBinary
-
- All Implemented Interfaces:
WeightAggregateOptions.KeysOrWeightedKeysBinary
- Enclosing class:
- WeightAggregateOptions
public static class WeightAggregateOptions.WeightedKeysBinary extends java.lang.Object implements WeightAggregateOptions.KeysOrWeightedKeysBinary
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 WeightedKeysBinary(java.util.List<org.apache.commons.lang3.tuple.Pair<GlideString,java.lang.Double>> keysWeights)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlideString[]toArgs()Convert to command arguments according to the Valkey API.
-
-
-
Constructor Detail
-
WeightedKeysBinary
public WeightedKeysBinary(java.util.List<org.apache.commons.lang3.tuple.Pair<GlideString,java.lang.Double>> keysWeights)
-
-
Method Detail
-
toArgs
public GlideString[] toArgs()
Description copied from interface:WeightAggregateOptions.KeysOrWeightedKeysBinaryConvert to command arguments according to the Valkey API.- Specified by:
toArgsin interfaceWeightAggregateOptions.KeysOrWeightedKeysBinary
-
-