public class ZAggregateArgs extends Object implements CompositeArgument
ZAggregateArgs.Builder
and
chain the method calls: weights(1, 2).max()
.Modifier and Type | Class and Description |
---|---|
static class |
ZAggregateArgs.Builder
Builder entry points for
ScanArgs . |
Constructor and Description |
---|
ZAggregateArgs() |
Modifier and Type | Method and Description |
---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs . |
ZAggregateArgs |
max()
Aggregate scores of elements existing across multiple sets by using the highest score.
|
ZAggregateArgs |
min()
Aggregate scores of elements existing across multiple sets by using the lowest score.
|
ZAggregateArgs |
sum()
Aggregate scores of elements existing across multiple sets by summing up.
|
ZAggregateArgs |
weights(double... weights)
Specify a multiplication factor for each input sorted set.
|
public ZAggregateArgs weights(double... weights)
weights
- must not be null
.this
ZAggregateArgs
.public ZAggregateArgs sum()
this
ZAggregateArgs
.public ZAggregateArgs min()
this
ZAggregateArgs
.public ZAggregateArgs max()
this
ZAggregateArgs
.public <K,V> void build(CommandArgs<K,V> args)
CompositeArgument
CommandArgs
.
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 CompositeArgument
K
- Key type.V
- Value type.args
- the command arguments, must not be null
.Copyright © 2023 lettuce.io. All rights reserved.