java.lang.Object
io.lettuce.core.ZAggregateArgs
- All Implemented Interfaces:
CompositeArgument
- Direct Known Subclasses:
ZStoreArgs
public class ZAggregateArgs extends Object implements CompositeArgument
Argument list builder for the Redis ZUNION,
ZUNIONSTORE, ZINTER and
ZINTERSTORE commands. Static import the methods from
ZAggregateArgs.Builder and
chain the method calls: weights(1, 2).max().- Since:
- 6.1
- Author:
- Will Glozer, Xy Ma, Mark Paluch, Mikhael Sokolov
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZAggregateArgs.BuilderBuilder entry points forScanArgs. -
Constructor Summary
Constructors Constructor Description ZAggregateArgs() -
Method Summary
Modifier and Type Method Description <K, V> voidbuild(CommandArgs<K,V> args)Build command arguments and contribute arguments toCommandArgs.ZAggregateArgsmax()Aggregate scores of elements existing across multiple sets by using the highest score.ZAggregateArgsmin()Aggregate scores of elements existing across multiple sets by using the lowest score.ZAggregateArgssum()Aggregate scores of elements existing across multiple sets by summing up.ZAggregateArgsweights(double... weights)Specify a multiplication factor for each input sorted set.
-
Constructor Details
-
ZAggregateArgs
public ZAggregateArgs()
-
-
Method Details
-
weights
Specify a multiplication factor for each input sorted set.- Parameters:
weights- must not benull.- Returns:
thisZAggregateArgs.
-
sum
Aggregate scores of elements existing across multiple sets by summing up.- Returns:
thisZAggregateArgs.
-
min
Aggregate scores of elements existing across multiple sets by using the lowest score.- Returns:
thisZAggregateArgs.
-
max
Aggregate scores of elements existing across multiple sets by using the highest score.- Returns:
thisZAggregateArgs.
-
build
Description copied from interface:CompositeArgumentBuild command arguments and contribute arguments toCommandArgs.Implementing classes are required to implement this method. Depending on the command nature and configured arguments, this method may contribute arguments but is not required to add arguments if none are specified.
- Specified by:
buildin interfaceCompositeArgument- Type Parameters:
K- Key type.V- Value type.- Parameters:
args- the command arguments, must not benull.
-