Class ReactiveZSetCommands.ZUnionStoreCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveZSetCommands.ZAggregateStoreCommand
org.springframework.data.redis.connection.ReactiveZSetCommands.ZUnionStoreCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveZSetCommands
public static class ReactiveZSetCommands.ZUnionStoreCommand
extends ReactiveZSetCommands.ZAggregateStoreCommand
ZUNIONSTORE
command parameters.- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaggregateUsing
(Aggregate aggregateFunction) Applies a specificAggregate
function.applyWeights
(List<Double> weights) Applies theList
of weights.applyWeights
(Weights weights) Applies theWeights
.sets
(List<ByteBuffer> keys) Creates a newReactiveZSetCommands.ZUnionStoreCommand
given aList
of keys.storeAs
(ByteBuffer key) Applies the key at which the result is stored.Methods inherited from class org.springframework.data.redis.connection.ReactiveZSetCommands.ZAggregateStoreCommand
getAggregateFunction, getSourceKeys, getWeights
Methods inherited from class org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.Command
getName
-
Method Details
-
sets
Creates a newReactiveZSetCommands.ZUnionStoreCommand
given aList
of keys.- Parameters:
keys
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZUnionStoreCommand
forRange
.
-
applyWeights
Applies theList
of weights. Constructs a new command instance with all previously configured properties.- Overrides:
applyWeights
in classReactiveZSetCommands.ZAggregateStoreCommand
- Parameters:
weights
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZUnionStoreCommand
with weights applied.
-
applyWeights
Applies theWeights
. Constructs a new command instance with all previously configured properties.- Overrides:
applyWeights
in classReactiveZSetCommands.ZAggregateStoreCommand
- Parameters:
weights
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZUnionStoreCommand
with weights applied. - Since:
- 2.1
-
aggregateUsing
public ReactiveZSetCommands.ZUnionStoreCommand aggregateUsing(@Nullable Aggregate aggregateFunction) Applies a specificAggregate
function. Constructs a new command instance with all previously configured properties.- Overrides:
aggregateUsing
in classReactiveZSetCommands.ZAggregateStoreCommand
- Parameters:
aggregateFunction
- can be null.- Returns:
- a new
ReactiveZSetCommands.ZUnionStoreCommand
withAggregate
applied.
-
storeAs
Applies the key at which the result is stored. Constructs a new command instance with all previously configured properties.- Overrides:
storeAs
in classReactiveZSetCommands.ZAggregateStoreCommand
- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZUnionStoreCommand
with key applied.
-