Class ReactiveZSetCommands.ZAggregateCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveZSetCommands.ZAggregateCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveZSetCommands
public static class ReactiveZSetCommands.ZAggregateCommand
extends Object
implements ReactiveRedisConnection.Command
ZINTER/ZUNION command parameters.- Since:
- 2.6
- Author:
- Christoph Strobl, Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaggregateUsing(Aggregate aggregateFunction) Applies a specificAggregatefunction.applyWeights(List<Double> weights) Applies theListof weights.applyWeights(Weights weights) Applies theWeights.getKey()sets(List<ByteBuffer> keys) Creates a newReactiveZSetCommands.ZAggregateCommandgiven aListof keys.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.Command
getName
-
Method Details
-
sets
Creates a newReactiveZSetCommands.ZAggregateCommandgiven aListof keys.- Parameters:
keys- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZAggregateCommandforRange.
-
applyWeights
Applies theListof weights. Constructs a new command instance with all previously configured properties.- Parameters:
weights- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZAggregateCommandwith weights applied.
-
applyWeights
Applies theWeights. Constructs a new command instance with all previously configured properties.- Parameters:
weights- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZAggregateCommandwith weights applied. - Since:
- 2.1
-
aggregateUsing
Applies a specificAggregatefunction. Constructs a new command instance with all previously configured properties.- Parameters:
aggregateFunction- can be null.- Returns:
- a new
ReactiveZSetCommands.ZAggregateStoreCommandwithAggregateapplied.
-
getKey
- Specified by:
getKeyin interfaceReactiveRedisConnection.Command- Returns:
- the key related to this command.
-
getSourceKeys
- Returns:
- never null.
-
getWeights
- Returns:
- never null.
-
getAggregateFunction
- Returns:
- never null.
-