Class ZAggregateArgs
java.lang.Object
io.quarkus.redis.datasource.sortedset.ZAggregateArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
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 theaggregatefunction to beMAX.min()Configure theaggregatefunction to beMIN.sum()Configure theaggregatefunction 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, waitMethods 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 theaggregatefunction to beSUM.- Returns:
- the current
ZAggregateArgs
-
min
Configure theaggregatefunction to beMIN.- Returns:
- the current
ZAggregateArgs
-
max
Configure theaggregatefunction to beMAX.- Returns:
- the current
ZAggregateArgs
-
toArgs
- Specified by:
toArgsin interfaceRedisCommandExtraArguments- Returns:
- the list of arguments.
-