Interface ReactiveZSetCommands
- All Known Subinterfaces:
ReactiveClusterZSetCommands
public interface ReactiveZSetCommands
Redis Sorted Set commands executed using reactive infrastructure.
- Since:
- 2.0
- Author:
- Christoph Strobl, Mark Paluch, Andrey Shlykov
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBZPOPMIN/BZPOPMAX command parameters.static enumstatic classZADDcommand parameters.static classZINTER/ZUNIONcommand parameters.static classZINTERSTORE/ZUNIONSTOREcommand parameters.static classZCOUNTcommand parameters.static classZDIFFcommand parameters.static classZDIFFSTOREcommand parameters.static classZINCRBYcommand parameters.static classZINTERSTOREcommand parameters.static classZLEXCOUNTcommand parameters.static classZMSCOREcommand parameters.static classZPOPMIN/ZPOPMAX command parameters.static classZRANDMEMBERcommand parameters.static classZRANGEBYLEX/ZREVRANGEBYLEX command parameters.static classZRANGEBYSCORE/ZREVRANGEBYSCORE.static classZRANGE/ZREVRANGE command parameters.static classZRANGESTOREcommand parameters.static classZRANK/ZREVRANK command parameters.static classZREMcommand parameters.static classZREMRANGEBYLEXcommand parameters.static classZREMRANGEBYRANKcommand parameters.static classZREMRANGEBYSCOREcommand parameters.static classZSCOREcommand parameters.static classZUNIONSTOREcommand parameters. -
Method Summary
Modifier and TypeMethodDescriptionbZPop(Publisher<ReactiveZSetCommands.BZPopCommand> commands) Remove and return elements from sorted set atkeyCommand#getKey().bZPopMax(ByteBuffer key, Duration timeout) Remove and return the value with its score having the highest score from sorted set atkey.bZPopMin(ByteBuffer key, Duration timeout) Remove and return the value with its score having the lowest score from sorted set atkey.zAdd(ByteBuffer key, Double score, ByteBuffer value) Add value to a sorted set at key, or update its score if it already exists.zAdd(ByteBuffer key, Collection<? extends Tuple> tuples) Add a tuples to a sorted set at key, or update their score if it already exists.zAdd(Publisher<ReactiveZSetCommands.ZAddCommand> commands) AddReactiveZSetCommands.ZAddCommand.getTuples()to a sorted set atReactiveRedisConnection.KeyCommand.getKey(), or update its score if it already exists.zCard(ByteBuffer key) Get the size of sorted set with key.zCard(Publisher<ReactiveRedisConnection.KeyCommand> commands) Get the size of sorted set withkeyCommand#getKey().zCount(ByteBuffer key, Range<Double> range) Count number of elements within sorted set with scores withinRange.zCount(Publisher<ReactiveZSetCommands.ZCountCommand> commands) Count number of elements within sorted set with scores withinRange.default Flux<ByteBuffer>zDiff(List<ByteBuffer> sets) Diff sorted sets.zDiff(Publisher<? extends ReactiveZSetCommands.ZDiffCommand> commands) Diff sorted sets.zDiffStore(ByteBuffer destinationKey, List<ByteBuffer> sets) Diff sorted sets and store result in destination destinationKey.Diff sorted sets and store result in destination destinationKey.zDiffWithScores(List<ByteBuffer> sets) Diff sorted sets.zDiffWithScores(Publisher<? extends ReactiveZSetCommands.ZDiffCommand> commands) Diff sorted sets.zIncrBy(ByteBuffer key, Number increment, ByteBuffer value) Increment the score of element with value in sorted set by increment.zIncrBy(Publisher<ReactiveZSetCommands.ZIncrByCommand> commands) Increment the score of element withReactiveZSetCommands.ZIncrByCommand.getValue()in sorted set byReactiveZSetCommands.ZIncrByCommand.getIncrement().default Flux<ByteBuffer>zInter(List<ByteBuffer> sets) Intersect sorted sets.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,Flux<ByteBuffer>>> zInter(Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets) Intersect sorted sets and store result in destination destinationKey.zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights) Intersect sorted sets and store result in destination destinationKey and apply weights to individual sets.zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights, Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights) Intersect sorted sets and store result in destination destinationKey and apply weights to individual sets.zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights, Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.zInterStore(Publisher<? extends ReactiveZSetCommands.ZAggregateStoreCommand> commands) Intersect sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.zInterWithScores(List<ByteBuffer> sets) Intersect sorted sets.zInterWithScores(List<ByteBuffer> sets, List<Double> weights) Intersect sorted sets and apply weights to individual sets.zInterWithScores(List<ByteBuffer> sets, List<Double> weights, Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.zInterWithScores(List<ByteBuffer> sets, Weights weights) Intersect sorted sets and apply weights to individual sets.zInterWithScores(List<ByteBuffer> sets, Weights weights, Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.zInterWithScores(Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.zLexCount(ByteBuffer key, Range<String> range) Count number of elements within sorted set with value betweenRange#minandRange#maxapplying lexicographical ordering.Count number of elements within sorted set with value betweenRange#minandRange#maxapplying lexicographical ordering.zMScore(ByteBuffer key, Collection<ByteBuffer> values) Get the scores of elements with values from sorted set with key key.zMScore(Publisher<ReactiveZSetCommands.ZMScoreCommand> commands) Get the scores of elements withReactiveZSetCommands.ZMScoreCommand.getValues()from sorted set with keyReactiveRedisConnection.KeyCommand.getKey()zPop(Publisher<ReactiveZSetCommands.ZPopCommand> commands) Remove and return elements from sorted set atkeyCommand#getKey().zPopMax(ByteBuffer key) Remove and return the value with its score having the highest score from sorted set atkey.zPopMax(ByteBuffer key, long count) Remove and returncountvalues with their score having the highest score from sorted set atkey.zPopMin(ByteBuffer key) Remove and return the value with its score having the lowest score from sorted set atkey.zPopMin(ByteBuffer key, long count) Remove and returncountvalues with their score having the lowest score from sorted set atkey.default Mono<ByteBuffer>zRandMember(ByteBuffer key) Get random element from sorted set atkey.default Flux<ByteBuffer>zRandMember(ByteBuffer key, long count) Getcountrandom elements from sorted set atkey.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRandMemberCommand,Flux<ByteBuffer>>> Get random elements from sorted set atkey.Get random element from sorted set atkey.zRandMemberWithScore(ByteBuffer key, long count) Getcountrandom elements from sorted set atkey.Get random elements from sorted set atkey.default Flux<ByteBuffer>zRange(ByteBuffer key, Range<Long> range) Get elements in range from sorted set.zRange(Publisher<ReactiveZSetCommands.ZRangeCommand> commands) Get set ofTuples in range from sorted set.default Flux<ByteBuffer>zRangeByLex(ByteBuffer key, Range<String> range) Get all elements inRangefrom the sorted set at key in lexicographical ordering.default Flux<ByteBuffer>zRangeByLex(ByteBuffer key, Range<String> range, Limit limit) Get all elements inRangefrom the sorted set at key in lexicographical ordering.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeByLexCommand,Flux<ByteBuffer>>> Get all elements inRangefrom the sorted set at key in lexicographical ordering.default Flux<ByteBuffer>zRangeByScore(ByteBuffer key, Range<Double> range) Get elements in range from sorted set.default Flux<ByteBuffer>zRangeByScore(ByteBuffer key, Range<Double> range, Limit limit) Get elements in range from sorted set.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeByScoreCommand,Flux<Tuple>>> GetTuples in range from sorted set.zRangeByScoreWithScores(ByteBuffer key, Range<Double> range) GetTuples in range from sorted set.zRangeByScoreWithScores(ByteBuffer key, Range<Double> range, Limit limit) GetTuples in range from sorted set.Get set ofTuples in range from sorted set.zRangeStoreByLex(ByteBuffer srcKey, ByteBuffer destKey, Range<String> range, Limit limit) Add elements fromsrcKeyby lexicographical range todestKey.zRangeStoreByScore(ByteBuffer srcKey, ByteBuffer destKey, Range<Double> range, Limit limit) Add elements fromsrcKeyby score range todestKey.zRangeStoreRevByLex(ByteBuffer srcKey, ByteBuffer destKey, Range<String> range, Limit limit) Add elements fromsrcKeyby reverse lexicographical range todestKey.zRangeStoreRevByScore(ByteBuffer srcKey, ByteBuffer destKey, Range<Double> range, Limit limit) Add elements fromsrcKeyby reverse score range todestKey.zRangeWithScores(ByteBuffer key, Range<Long> range) Get set ofTuples in range from sorted set.zRank(ByteBuffer key, ByteBuffer value) Determine the index of element with value in a sorted set.zRank(Publisher<ReactiveZSetCommands.ZRankCommand> commands) Determine the index of element with value in a sorted set when scored byReactiveZSetCommands.ZRankCommand.getDirection().zRem(ByteBuffer key, ByteBuffer value) Remove value from sorted set.zRem(ByteBuffer key, Collection<ByteBuffer> values) Remove values from sorted set.zRem(Publisher<ReactiveZSetCommands.ZRemCommand> commands) RemoveReactiveZSetCommands.ZRemCommand.getValues()from sorted set.zRemRangeByLex(ByteBuffer key, Range<String> range) Remove elements inRangefrom sorted set with key.Remove elements inRangefrom sorted set withReactiveRedisConnection.KeyCommand.getKey().zRemRangeByRank(ByteBuffer key, Range<Long> range) Remove elements inRangefrom sorted set with key.Remove elements inRangefrom sorted set withReactiveRedisConnection.KeyCommand.getKey().zRemRangeByScore(ByteBuffer key, Range<Double> range) Remove elements inRangefrom sorted set with key.Remove elements inRangefrom sorted set withReactiveRedisConnection.KeyCommand.getKey().default Flux<ByteBuffer>zRevRange(ByteBuffer key, Range<Long> range) Get elements in range from sorted set in reverse score ordering.default Flux<ByteBuffer>zRevRangeByLex(ByteBuffer key, Range<String> range) Get all elements inRangefrom the sorted set at key in lexicographical ordering.default Flux<ByteBuffer>zRevRangeByLex(ByteBuffer key, Range<String> range, Limit limit) Get all elements inRangefrom the sorted set at key in lexicographical ordering.default Flux<ByteBuffer>zRevRangeByScore(ByteBuffer key, Range<Double> range) Get elements in range from sorted set in reverse score ordering.default Flux<ByteBuffer>zRevRangeByScore(ByteBuffer key, Range<Double> range, Limit limit) Get elements in range from sorted set in reverse score ordering.zRevRangeByScoreWithScores(ByteBuffer key, Range<Double> range) Get set ofTuples in range from sorted set in reverse score ordering.zRevRangeByScoreWithScores(ByteBuffer key, Range<Double> range, Limit limit) GetTuples in range from sorted set in reverse score ordering.zRevRangeWithScores(ByteBuffer key, Range<Long> range) Get set ofTuples in range from sorted set in reverse score ordering.zRevRank(ByteBuffer key, ByteBuffer value) Determine the index of element with value in a sorted set when scored high to low.zScan(ByteBuffer key) Use aFluxto iterate over members in the sorted set atkey.zScan(ByteBuffer key, ScanOptions options) zScan(Publisher<ReactiveRedisConnection.KeyScanCommand> commands) Use aFluxto iterate over members in the sorted set atkey.zScore(ByteBuffer key, ByteBuffer value) Get the score of element with value from sorted set with key key.zScore(Publisher<ReactiveZSetCommands.ZScoreCommand> commands) Get the score of element withReactiveZSetCommands.ZScoreCommand.getValue()from sorted set with keyReactiveRedisConnection.KeyCommand.getKey()default Flux<ByteBuffer>zUnion(List<ByteBuffer> sets) Union sorted sets.Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,Flux<ByteBuffer>>> zUnion(Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Union sorted sets by applying aggregateFunction and apply weights to individual sets.zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets) Union sorted sets and store result in destination destinationKey.zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights) Union sorted sets and store result in destination destinationKey and apply weights to individual sets.zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights, Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights) Union sorted sets and store result in destination destinationKey and apply weights to individual sets.zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights, Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.zUnionStore(Publisher<? extends ReactiveZSetCommands.ZAggregateStoreCommand> commands) Union sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.zUnionWithScores(List<ByteBuffer> sets) Union sorted sets.zUnionWithScores(List<ByteBuffer> sets, List<Double> weights) Union sorted sets and apply weights to individual sets.zUnionWithScores(List<ByteBuffer> sets, List<Double> weights, Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and apply weights to individual sets.zUnionWithScores(List<ByteBuffer> sets, Weights weights) Union sorted sets and apply weights to individual sets.zUnionWithScores(List<ByteBuffer> sets, Weights weights, Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and apply weights to individual sets.zUnionWithScores(Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Union sorted sets by applying aggregateFunction and apply weights to individual sets.
-
Method Details
-
zAdd
Add value to a sorted set at key, or update its score if it already exists.- Parameters:
key- must not be null.score- must not be null.value- must not be null.- Returns:
- See Also:
-
zAdd
Add a tuples to a sorted set at key, or update their score if it already exists.- Parameters:
key- must not be null.tuples- must not be null.- Returns:
- See Also:
-
zAdd
Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZAddCommand,Number>> zAdd(Publisher<ReactiveZSetCommands.ZAddCommand> commands) AddReactiveZSetCommands.ZAddCommand.getTuples()to a sorted set atReactiveRedisConnection.KeyCommand.getKey(), or update its score if it already exists.- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zRem
Remove value from sorted set. Return number of removed elements.- Parameters:
key- must not be null.value- must not be null.- Returns:
- See Also:
-
zRem
Remove values from sorted set. Return number of removed elements.- Parameters:
key- must not be null.values- must not be null.- Returns:
- See Also:
-
zRem
Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemCommand,Long>> zRem(Publisher<ReactiveZSetCommands.ZRemCommand> commands) RemoveReactiveZSetCommands.ZRemCommand.getValues()from sorted set. Return number of removed elements.- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zIncrBy
Increment the score of element with value in sorted set by increment.- Parameters:
key- must not be null.increment- must not be null.value- must not be null.- Returns:
- See Also:
-
zIncrBy
Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZIncrByCommand,Double>> zIncrBy(Publisher<ReactiveZSetCommands.ZIncrByCommand> commands) Increment the score of element withReactiveZSetCommands.ZIncrByCommand.getValue()in sorted set byReactiveZSetCommands.ZIncrByCommand.getIncrement().- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zRandMember
Get random element from sorted set atkey.- Parameters:
key- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zRandMember
Getcountrandom elements from sorted set atkey.- Parameters:
key- must not be null.count- if the providedcountargument is positive, return a list of distinct fields, capped either atcountor the set size. Ifcountis negative, the behavior changes and the command is allowed to return the same value multiple times. In this case, the number of returned values is the absolute value of the specified count.- Returns:
- Since:
- 2.6
- See Also:
-
zRandMember
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRandMemberCommand,Flux<ByteBuffer>>> zRandMember(Publisher<ReactiveZSetCommands.ZRandMemberCommand> commands) Get random elements from sorted set atkey.- Parameters:
commands- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zRandMemberWithScore
Get random element from sorted set atkey.- Parameters:
key- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zRandMemberWithScore
Getcountrandom elements from sorted set atkey.- Parameters:
key- must not be null.count- if the providedcountargument is positive, return a list of distinct fields, capped either atcountor the set size. Ifcountis negative, the behavior changes and the command is allowed to return the same value multiple times. In this case, the number of returned values is the absolute value of the specified count.- Returns:
- Since:
- 2.6
- See Also:
-
zRandMemberWithScore
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRandMemberCommand,Flux<Tuple>>> zRandMemberWithScore(Publisher<ReactiveZSetCommands.ZRandMemberCommand> commands) Get random elements from sorted set atkey.- Parameters:
commands- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zRank
Determine the index of element with value in a sorted set.- Parameters:
key- must not be null.value- must not be null.- Returns:
- See Also:
-
zRevRank
Determine the index of element with value in a sorted set when scored high to low.- Parameters:
key- must not be null.value- must not be null.- Returns:
- See Also:
-
zRank
Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRankCommand,Long>> zRank(Publisher<ReactiveZSetCommands.ZRankCommand> commands) Determine the index of element with value in a sorted set when scored byReactiveZSetCommands.ZRankCommand.getDirection().- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zRange
Get elements in range from sorted set.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRangeWithScores
Get set ofTuples in range from sorted set.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRevRange
Get elements in range from sorted set in reverse score ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRevRangeWithScores
Get set ofTuples in range from sorted set in reverse score ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRange
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeCommand,Flux<Tuple>>> zRange(Publisher<ReactiveZSetCommands.ZRangeCommand> commands) Get set ofTuples in range from sorted set.- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zRangeStoreByScore
default Mono<Long> zRangeStoreByScore(ByteBuffer srcKey, ByteBuffer destKey, Range<Double> range, Limit limit) Add elements fromsrcKeyby score range todestKey.- Parameters:
srcKey- must not be null.destKey- must not be null.range- must not be null.limit- must not be null.- Returns:
- Since:
- 3.0
- See Also:
-
zRangeStoreByLex
default Mono<Long> zRangeStoreByLex(ByteBuffer srcKey, ByteBuffer destKey, Range<String> range, Limit limit) Add elements fromsrcKeyby lexicographical range todestKey.- Parameters:
srcKey- must not be null.destKey- must not be null.range- must not be null.limit- must not be null.- Returns:
- Since:
- 3.0
- See Also:
-
zRangeStoreRevByScore
default Mono<Long> zRangeStoreRevByScore(ByteBuffer srcKey, ByteBuffer destKey, Range<Double> range, Limit limit) Add elements fromsrcKeyby reverse score range todestKey.- Parameters:
srcKey- must not be null.destKey- must not be null.range- must not be null.limit- must not be null.- Returns:
- Since:
- 3.0
- See Also:
-
zRangeStoreRevByLex
default Mono<Long> zRangeStoreRevByLex(ByteBuffer srcKey, ByteBuffer destKey, Range<String> range, Limit limit) Add elements fromsrcKeyby reverse lexicographical range todestKey.- Parameters:
srcKey- must not be null.destKey- must not be null.range- must not be null.limit- must not be null.- Returns:
- Since:
- 3.0
- See Also:
-
zRangeStore
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeStoreCommand,Mono<Long>>> zRangeStore(Publisher<ReactiveZSetCommands.ZRangeStoreCommand> commands) Get set ofTuples in range from sorted set.- Parameters:
commands- must not be null.- Returns:
- Since:
- 3.0
- See Also:
-
zRangeByScore
Get elements in range from sorted set.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRangeByScore
Get elements in range from sorted set.- Parameters:
key- must not be null.range- must not be null.limit- must not be null.- Returns:
- See Also:
-
zRangeByScoreWithScores
GetTuples in range from sorted set.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRangeByScoreWithScores
GetTuples in range from sorted set.- Parameters:
key- must not be null.range- must not be null.limit- must not be null.- Returns:
- See Also:
-
zRevRangeByScore
Get elements in range from sorted set in reverse score ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRevRangeByScore
Get elements in range from sorted set in reverse score ordering.- Parameters:
key- must not be null.range- must not be null.limit- must not be null.- Returns:
- See Also:
-
zRevRangeByScoreWithScores
Get set ofTuples in range from sorted set in reverse score ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRevRangeByScoreWithScores
GetTuples in range from sorted set in reverse score ordering.- Parameters:
key- must not be null.range- must not be null.limit- must not be null.- Returns:
- See Also:
-
zRangeByScore
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeByScoreCommand,Flux<Tuple>>> zRangeByScore(Publisher<ReactiveZSetCommands.ZRangeByScoreCommand> commands) GetTuples in range from sorted set.- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zScan
Use aFluxto iterate over members in the sorted set atkey. The resultingFluxacts as a cursor and issuesZSCANcommands itself as long as the subscriber signals demand.- Parameters:
key- must not be null.- Returns:
- the
Fluxemitting the rawtuplesone by one. - Throws:
IllegalArgumentException- when key is null.- Since:
- 2.1
- See Also:
-
zScan
Use aFluxto iterate over members in the sorted set atkeygivenScanOptions. The resultingFluxacts as a cursor and issuesZSCANcommands itself as long as the subscriber signals.- Parameters:
key- must not be null.options- must not be null. UseScanOptions.NONEinstead.- Returns:
- the
Fluxemitting the rawtuplesone by one. - Throws:
IllegalArgumentException- when one of the required arguments is null.- Since:
- 2.1
- See Also:
-
zScan
Flux<ReactiveRedisConnection.CommandResponse<ReactiveRedisConnection.KeyCommand,Flux<Tuple>>> zScan(Publisher<ReactiveRedisConnection.KeyScanCommand> commands) Use aFluxto iterate over members in the sorted set atkey. The resultingFluxacts as a cursor and issuesZSCANcommands itself as long as the subscriber signals demand.- Parameters:
commands- must not be null.- Returns:
- Since:
- 2.1
- See Also:
-
zCount
Count number of elements within sorted set with scores withinRange.
NOTE please useDouble.NEGATIVE_INFINITYfor -inf andDouble.POSITIVE_INFINITYfor +inf.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zCount
Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZCountCommand,Long>> zCount(Publisher<ReactiveZSetCommands.ZCountCommand> commands) Count number of elements within sorted set with scores withinRange.
NOTE please useDouble.NEGATIVE_INFINITYfor -inf andDouble.POSITIVE_INFINITYfor +inf.- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zLexCount
Count number of elements within sorted set with value betweenRange#minandRange#maxapplying lexicographical ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- Since:
- 2.4
- See Also:
-
zLexCount
Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZLexCountCommand,Long>> zLexCount(Publisher<ReactiveZSetCommands.ZLexCountCommand> commands) Count number of elements within sorted set with value betweenRange#minandRange#maxapplying lexicographical ordering.- Parameters:
commands- must not be null.- Returns:
- Since:
- 2.4
- See Also:
-
zPopMin
Remove and return the value with its score having the lowest score from sorted set atkey.- Parameters:
key- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zPopMin
Remove and returncountvalues with their score having the lowest score from sorted set atkey.- Parameters:
key- must not be null.count- number of elements to pop.- Returns:
- Since:
- 2.6
- See Also:
-
bZPopMin
Remove and return the value with its score having the lowest score from sorted set atkey. Blocks connection until element available ortimeoutreached.- Parameters:
key- must not be null.timeout- must not be null.- Returns:
- Throws:
IllegalArgumentException- if the timeout is null or negative.- Since:
- 2.6
- See Also:
-
zPopMax
Remove and return the value with its score having the highest score from sorted set atkey.- Parameters:
key- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zPopMax
Remove and returncountvalues with their score having the highest score from sorted set atkey.- Parameters:
key- must not be null.count- number of elements to pop.- Returns:
- Since:
- 2.6
- See Also:
-
bZPopMax
Remove and return the value with its score having the highest score from sorted set atkey. Blocks connection until element available ortimeoutreached.- Parameters:
key- must not be null.timeout- must not be null.- Returns:
- Throws:
IllegalArgumentException- if the timeout is null or negative.- Since:
- 2.6
- See Also:
-
zPop
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZPopCommand,Flux<Tuple>>> zPop(Publisher<ReactiveZSetCommands.ZPopCommand> commands) Remove and return elements from sorted set atkeyCommand#getKey().- Parameters:
commands- must not be null.- Returns:
- See Also:
-
bZPop
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.BZPopCommand,Flux<Tuple>>> bZPop(Publisher<ReactiveZSetCommands.BZPopCommand> commands) Remove and return elements from sorted set atkeyCommand#getKey().- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zCard
Get the size of sorted set with key.- Parameters:
key- must not be null.- Returns:
- See Also:
-
zCard
Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> zCard(Publisher<ReactiveRedisConnection.KeyCommand> commands) Get the size of sorted set withkeyCommand#getKey().- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zScore
Get the score of element with value from sorted set with key key.- Parameters:
key- must not be null.value- must not be null.- Returns:
- See Also:
-
zScore
Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZScoreCommand,Double>> zScore(Publisher<ReactiveZSetCommands.ZScoreCommand> commands) Get the score of element withReactiveZSetCommands.ZScoreCommand.getValue()from sorted set with keyReactiveRedisConnection.KeyCommand.getKey()- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zMScore
Get the scores of elements with values from sorted set with key key.- Parameters:
key- must not be null.values- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zMScore
Flux<ReactiveRedisConnection.MultiValueResponse<ReactiveZSetCommands.ZMScoreCommand,Double>> zMScore(Publisher<ReactiveZSetCommands.ZMScoreCommand> commands) Get the scores of elements withReactiveZSetCommands.ZMScoreCommand.getValues()from sorted set with keyReactiveRedisConnection.KeyCommand.getKey()- Parameters:
commands- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zRemRangeByRank
Remove elements inRangefrom sorted set with key.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRemRangeByRank
Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByRankCommand,Long>> zRemRangeByRank(Publisher<ReactiveZSetCommands.ZRemRangeByRankCommand> commands) Remove elements inRangefrom sorted set withReactiveRedisConnection.KeyCommand.getKey().- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zRemRangeByScore
Remove elements inRangefrom sorted set with key.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRemRangeByScore
Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByScoreCommand,Long>> zRemRangeByScore(Publisher<ReactiveZSetCommands.ZRemRangeByScoreCommand> commands) Remove elements inRangefrom sorted set withReactiveRedisConnection.KeyCommand.getKey().- Parameters:
commands- must not be null.- Returns:
- See Also:
-
zRemRangeByLex
Remove elements inRangefrom sorted set with key.- Parameters:
key- must not be null.range- must not be null.- Returns:
- a
Monoemitting the number of removed elements. - Since:
- 2.5
- See Also:
-
zRemRangeByLex
Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByLexCommand,Long>> zRemRangeByLex(Publisher<ReactiveZSetCommands.ZRemRangeByLexCommand> commands) Remove elements inRangefrom sorted set withReactiveRedisConnection.KeyCommand.getKey().- Parameters:
commands- must not be null.- Returns:
- Since:
- 2.5
- See Also:
-
zDiff
Diff sorted sets.- Parameters:
sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zDiff
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZDiffCommand,Flux<ByteBuffer>>> zDiff(Publisher<? extends ReactiveZSetCommands.ZDiffCommand> commands) Diff sorted sets.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zDiffWithScores
Diff sorted sets.- Parameters:
sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zDiffWithScores
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZDiffCommand,Flux<Tuple>>> zDiffWithScores(Publisher<? extends ReactiveZSetCommands.ZDiffCommand> commands) Diff sorted sets.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zDiffStore
Diff sorted sets and store result in destination destinationKey.- Parameters:
destinationKey- must not be null.sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zDiffStore
Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZDiffStoreCommand,Long>> zDiffStore(Publisher<ReactiveZSetCommands.ZDiffStoreCommand> commands) Diff sorted sets and store result in destination destinationKey.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zInter
Intersect sorted sets.- Parameters:
sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zInter
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,Flux<ByteBuffer>>> zInter(Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zInterWithScores
Intersect sorted sets.- Parameters:
sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zInterWithScores
Intersect sorted sets and apply weights to individual sets.- Parameters:
sets- must not be null.weights- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zInterWithScores
Intersect sorted sets and apply weights to individual sets.- Parameters:
sets- must not be null.weights- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zInterWithScores
default Flux<Tuple> zInterWithScores(List<ByteBuffer> sets, List<Double> weights, @Nullable Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
sets- must not be null.weights- must not be null.aggregateFunction- can be null.- Returns:
- Since:
- 2.6
- See Also:
-
zInterWithScores
default Flux<Tuple> zInterWithScores(List<ByteBuffer> sets, Weights weights, @Nullable Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
sets- must not be null.weights- must not be null.aggregateFunction- can be null.- Returns:
- Since:
- 2.6
- See Also:
-
zInterWithScores
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,Flux<Tuple>>> zInterWithScores(Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Intersect sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zInterStore
Intersect sorted sets and store result in destination destinationKey.- Parameters:
destinationKey- must not be null.sets- must not be null.- Returns:
- See Also:
-
zInterStore
default Mono<Long> zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights) Intersect sorted sets and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- must not be null.- Returns:
- See Also:
-
zInterStore
Intersect sorted sets and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- must not be null.- Returns:
- Since:
- 2.1
- See Also:
-
zInterStore
default Mono<Long> zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights, @Nullable Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- must not be null.aggregateFunction- can be null.- Returns:
- See Also:
-
zInterStore
default Mono<Long> zInterStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights, @Nullable Aggregate aggregateFunction) Intersect sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- must not be null.aggregateFunction- can be null.- Returns:
- Since:
- 2.1
- See Also:
-
zInterStore
Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZAggregateStoreCommand,Long>> zInterStore(Publisher<? extends ReactiveZSetCommands.ZAggregateStoreCommand> commands) Intersect sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.- Parameters:
commands-- Returns:
- See Also:
-
zUnion
Union sorted sets.- Parameters:
sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zUnionWithScores
Union sorted sets.- Parameters:
sets- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zUnionWithScores
Union sorted sets and apply weights to individual sets.- Parameters:
sets- must not be null.weights- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zUnionWithScores
Union sorted sets and apply weights to individual sets.- Parameters:
sets- must not be null.weights- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
zUnionWithScores
default Flux<Tuple> zUnionWithScores(List<ByteBuffer> sets, List<Double> weights, @Nullable Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
sets- must not be null.weights- can be null.aggregateFunction- can be null.- Returns:
- Since:
- 2.6
- See Also:
-
zUnionWithScores
default Flux<Tuple> zUnionWithScores(List<ByteBuffer> sets, Weights weights, @Nullable Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
sets- must not be null.weights- can be null.aggregateFunction- can be null.- Returns:
- Since:
- 2.6
- See Also:
-
zUnionWithScores
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,Flux<Tuple>>> zUnionWithScores(Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Union sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zUnion
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZAggregateCommand,Flux<ByteBuffer>>> zUnion(Publisher<? extends ReactiveZSetCommands.ZAggregateCommand> commands) Union sorted sets by applying aggregateFunction and apply weights to individual sets.- Parameters:
commands-- Returns:
- Since:
- 2.6
- See Also:
-
zUnionStore
Union sorted sets and store result in destination destinationKey.- Parameters:
destinationKey- must not be null.sets- must not be null.- Returns:
- See Also:
-
zUnionStore
default Mono<Long> zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights) Union sorted sets and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- must not be null.- Returns:
- See Also:
-
zUnionStore
Union sorted sets and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- must not be null.- Returns:
- Since:
- 2.1
- See Also:
-
zUnionStore
default Mono<Long> zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, List<Double> weights, @Nullable Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- can be null.aggregateFunction- can be null.- Returns:
- See Also:
-
zUnionStore
default Mono<Long> zUnionStore(ByteBuffer destinationKey, List<ByteBuffer> sets, Weights weights, @Nullable Aggregate aggregateFunction) Union sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.- Parameters:
destinationKey- must not be null.sets- must not be null.weights- can be null.aggregateFunction- can be null.- Returns:
- Since:
- 2.1
- See Also:
-
zUnionStore
Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZAggregateStoreCommand,Long>> zUnionStore(Publisher<? extends ReactiveZSetCommands.ZAggregateStoreCommand> commands) Union sorted sets by applying aggregateFunction and store result in destination destinationKey and apply weights to individual sets.- Parameters:
commands-- Returns:
- See Also:
-
zRangeByLex
Get all elements inRangefrom the sorted set at key in lexicographical ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRangeByLex
Get all elements inRangefrom the sorted set at key in lexicographical ordering. Result is limited viaLimit.- Parameters:
key- must not be null.range- must not be null.limit- can be null.- Returns:
- See Also:
-
zRevRangeByLex
Get all elements inRangefrom the sorted set at key in lexicographical ordering.- Parameters:
key- must not be null.range- must not be null.- Returns:
- See Also:
-
zRevRangeByLex
Get all elements inRangefrom the sorted set at key in lexicographical ordering. Result is limited viaLimit.- Parameters:
key- must not be null.range- must not be null.limit- must not be null.- Returns:
- See Also:
-
zRangeByLex
Flux<ReactiveRedisConnection.CommandResponse<ReactiveZSetCommands.ZRangeByLexCommand,Flux<ByteBuffer>>> zRangeByLex(Publisher<ReactiveZSetCommands.ZRangeByLexCommand> commands) Get all elements inRangefrom the sorted set at key in lexicographical ordering. Result is limited viaLimitand sorted byReactiveZSetCommands.ZRangeByLexCommand.getDirection().- Parameters:
commands- must not be null.- Returns:
- See Also:
-