Package io.lettuce.core
Class ZStoreArgs
- 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 fromZStoreArgs.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 class
ZStoreArgs.Builder
Builder entry points forScanArgs
.
-
Constructor Summary
Constructors Constructor Description ZStoreArgs()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ZStoreArgs
max()
Aggregate scores of elements existing across multiple sets by using the highest score.ZStoreArgs
min()
Aggregate scores of elements existing across multiple sets by using the lowest score.ZStoreArgs
sum()
Aggregate scores of elements existing across multiple sets by summing up.ZStoreArgs
weights(double... weights)
Specify a multiplication factor for each input sorted set.static ZStoreArgs
weights(long[] weights)
Deprecated.-
Methods inherited from class io.lettuce.core.ZAggregateArgs
build
-
-
-
-
Method Detail
-
weights
@Deprecated public static ZStoreArgs weights(long[] weights)
Deprecated.Specify a multiplication factor for each input sorted set.- Parameters:
weights
- must not benull
.- Returns:
this
ZStoreArgs
.
-
weights
public ZStoreArgs weights(double... weights)
Specify a multiplication factor for each input sorted set.- Overrides:
weights
in classZAggregateArgs
- Parameters:
weights
- must not benull
.- Returns:
this
ZStoreArgs
.
-
sum
public ZStoreArgs sum()
Aggregate scores of elements existing across multiple sets by summing up.- Overrides:
sum
in classZAggregateArgs
- Returns:
this
ZStoreArgs
.
-
min
public ZStoreArgs min()
Aggregate scores of elements existing across multiple sets by using the lowest score.- Overrides:
min
in classZAggregateArgs
- Returns:
this
ZStoreArgs
.
-
max
public ZStoreArgs max()
Aggregate scores of elements existing across multiple sets by using the highest score.- Overrides:
max
in classZAggregateArgs
- Returns:
this
ZStoreArgs
.
-
-