public class ZStoreArgs extends ZAggregateArgs
ZStoreArgs.Builder and
chain the method calls: weights(1, 2).max().
ZStoreArgs 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 |
|---|---|
ZStoreArgs |
count()
Aggregate scores of elements existing across multiple sets by using the number of input sets that contain each element.
|
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.
|
build@Deprecated public static ZStoreArgs weights(long[] weights)
weights(double...)weights - must not be null.this ZStoreArgs.public ZStoreArgs weights(double... weights)
weights in class ZAggregateArgsweights - must not be null.this ZStoreArgs.public ZStoreArgs sum()
sum in class ZAggregateArgsthis ZStoreArgs.public ZStoreArgs min()
min in class ZAggregateArgsthis ZStoreArgs.public ZStoreArgs max()
max in class ZAggregateArgsthis ZStoreArgs.public ZStoreArgs count()
COUNT is specified, the scores in the input sets are ignored. WEIGHTS are not ignored: the score of
each element becomes the sum of the weights specified for the input sets that contain it (defaulting to 1 per set
when WEIGHTS is not provided).count in class ZAggregateArgsthis ZStoreArgs.Copyright © 2026 lettuce.io. All rights reserved.