java.lang.Object
io.lettuce.core.ZAggregateArgs
io.lettuce.core.ZStoreArgs
- All Implemented Interfaces:
CompositeArgument
public class ZStoreArgs extends ZAggregateArgs
Argument list builder for the Redis ZUNIONSTORE and
ZINTERSTORE commands. Static import the methods from
ZStoreArgs.Builder and
chain the method calls: weights(1, 2).max().
ZAddArgs is a mutable object and instances should be used only once to avoid shared mutable state.
- Author:
- Will Glozer, Xy Ma, Mark Paluch, Mikhael Sokolov
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZStoreArgs.BuilderBuilder entry points forScanArgs. -
Constructor Summary
Constructors Constructor Description ZStoreArgs() -
Method Summary
Modifier and Type Method Description ZStoreArgsmax()Aggregate scores of elements existing across multiple sets by using the highest score.ZStoreArgsmin()Aggregate scores of elements existing across multiple sets by using the lowest score.ZStoreArgssum()Aggregate scores of elements existing across multiple sets by summing up.ZStoreArgsweights(double... weights)Specify a multiplication factor for each input sorted set.static ZStoreArgsweights(long[] weights)Deprecated.Methods inherited from class io.lettuce.core.ZAggregateArgs
build
-
Constructor Details
-
ZStoreArgs
public ZStoreArgs()
-
-
Method Details
-
weights
Deprecated.Specify a multiplication factor for each input sorted set.- Parameters:
weights- must not benull.- Returns:
thisZStoreArgs.
-
weights
Specify a multiplication factor for each input sorted set.- Overrides:
weightsin classZAggregateArgs- Parameters:
weights- must not benull.- Returns:
thisZStoreArgs.
-
sum
Aggregate scores of elements existing across multiple sets by summing up.- Overrides:
sumin classZAggregateArgs- Returns:
thisZStoreArgs.
-
min
Aggregate scores of elements existing across multiple sets by using the lowest score.- Overrides:
minin classZAggregateArgs- Returns:
thisZStoreArgs.
-
max
Aggregate scores of elements existing across multiple sets by using the highest score.- Overrides:
maxin classZAggregateArgs- Returns:
thisZStoreArgs.
-
weights(double...)