Class ReactiveZSetCommands.ZAggregateStoreCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveZSetCommands.ZAggregateStoreCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Direct Known Subclasses:
ReactiveZSetCommands.ZInterStoreCommand
,ReactiveZSetCommands.ZUnionStoreCommand
- Enclosing interface:
- ReactiveZSetCommands
public static class ReactiveZSetCommands.ZAggregateStoreCommand
extends ReactiveRedisConnection.KeyCommand
ZINTERSTORE
/ZUNIONSTORE
command parameters.- Since:
- 2.6
- Author:
- Christoph Strobl, Mark Paluch
- 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.ZAggregateStoreCommand
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.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.ZAggregateStoreCommand
given aList
of keys.- Parameters:
keys
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZAggregateStoreCommand
forRange
.
-
applyWeights
Applies theList
of weights. Constructs a new command instance with all previously configured properties.- Parameters:
weights
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZAggregateStoreCommand
with 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.ZAggregateStoreCommand
with weights applied. - Since:
- 2.1
-
aggregateUsing
public ReactiveZSetCommands.ZAggregateStoreCommand aggregateUsing(@Nullable Aggregate aggregateFunction) Applies a specificAggregate
function. Constructs a new command instance with all previously configured properties.- Parameters:
aggregateFunction
- can be null.- Returns:
- a new
ReactiveZSetCommands.ZAggregateStoreCommand
withAggregate
applied.
-
storeAs
Applies the key at which the result is stored. Constructs a new command instance with all previously configured properties.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZAggregateStoreCommand
with key applied.
-
getSourceKeys
- Returns:
- never null.
-
getWeights
- Returns:
- never null.
-
getAggregateFunction
- Returns:
- never null.
-