Class ZAggregateArgs
java.lang.Object
io.quarkus.redis.datasource.sortedset.ZAggregateArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaggregate
(ZAggregateArgs.Aggregate aggregate) With the AGGREGATE option, it is possible to specify how the results of the union are aggregated.max()
Configure theaggregate
function to beMAX
.min()
Configure theaggregate
function to beMIN
.sum()
Configure theaggregate
function to beSUM
.toArgs()
weights
(double... weights) Using the WEIGHTS option, it is possible to specify a multiplication factor for each input sorted set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
Constructor Details
-
ZAggregateArgs
public ZAggregateArgs()
-
-
Method Details
-
weights
Using the WEIGHTS option, it is possible to specify a multiplication factor for each input sorted set. This means that the score of every element in every input sorted set is multiplied by this factor before being passed to the aggregation function. When WEIGHTS is not given, the multiplication factors default to 1.- Parameters:
weights
- the weight values- Returns:
- the current
ZAggregateArgs
-
aggregate
With the AGGREGATE option, it is possible to specify how the results of the union are aggregated. This option defaults to SUM, where the score of an element is summed across the inputs where it exists. When this option is set to either MIN or MAX, the resulting set will contain the minimum or maximum score of an element across the inputs where it exists.- Parameters:
aggregate
- the aggregate value- Returns:
- the current
ZAggregateArgs
-
sum
Configure theaggregate
function to beSUM
.- Returns:
- the current
ZAggregateArgs
-
min
Configure theaggregate
function to beMIN
.- Returns:
- the current
ZAggregateArgs
-
max
Configure theaggregate
function to beMAX
.- Returns:
- the current
ZAggregateArgs
-
toArgs
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments.
-