public class ZStoreArgs extends Object implements CompositeArgument
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
ZStoreArgs.Builder
Builder entry points for
ScanArgs. |
| Constructor and Description |
|---|
ZStoreArgs() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs. |
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.
|
@Deprecated public static ZStoreArgs weights(long[] weights)
weights(double...)weights - must not be null.this ZStoreArgs.public ZStoreArgs weights(double... weights)
weights - must not be null.this ZStoreArgs.public ZStoreArgs sum()
this ZStoreArgs.public ZStoreArgs min()
this ZStoreArgs.public ZStoreArgs max()
this ZStoreArgs.public <K,V> void build(CommandArgs<K,V> args)
CompositeArgumentCommandArgs.
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.
build in interface CompositeArgumentK - Key type.V - Value type.args - the command arguments, must not be null.Copyright © 2019 lettuce.io. All rights reserved.