public class LettuceReactiveZSetCommands extends Object implements ReactiveZSetCommands
ReactiveZSetCommands.ZAddCommand, ReactiveZSetCommands.ZCountCommand, ReactiveZSetCommands.ZIncrByCommand, ReactiveZSetCommands.ZInterStoreCommand, ReactiveZSetCommands.ZRangeByLexCommand, ReactiveZSetCommands.ZRangeByScoreCommand, ReactiveZSetCommands.ZRangeCommand, ReactiveZSetCommands.ZRankCommand, ReactiveZSetCommands.ZRemCommand, ReactiveZSetCommands.ZRemRangeByRankCommand, ReactiveZSetCommands.ZRemRangeByScoreCommand, ReactiveZSetCommands.ZScoreCommand, ReactiveZSetCommands.ZUnionStoreCommand
Constructor and Description |
---|
LettuceReactiveZSetCommands(LettuceReactiveRedisConnection connection)
Create new
LettuceReactiveSetCommands . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
zAdd, zAdd, zCard, zCount, zIncrBy, zInterStore, zInterStore, zInterStore, zRange, zRangeByLex, zRangeByLex, zRangeByScore, zRangeByScore, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeWithScores, zRank, zRem, zRem, zRemRangeByRank, zRemRangeByScore, zRevRange, zRevRangeByLex, zRevRangeByLex, zRevRangeByScore, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeWithScores, zRevRank, zScore, zUnionStore, zUnionStore, zUnionStore
public LettuceReactiveZSetCommands(LettuceReactiveRedisConnection connection)
LettuceReactiveSetCommands
.connection
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZAddCommand,Number>> zAdd(org.reactivestreams.Publisher<ReactiveZSetCommands.ZAddCommand> commands)
ReactiveZSetCommands
ReactiveZSetCommands.ZAddCommand.getTuples()
to a sorted set at ReactiveRedisConnection.KeyCommand.getKey()
, or update its score
if it already exists.zAdd
in interface ReactiveZSetCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemCommand,Long>> zRem(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemCommand> commands)
ReactiveZSetCommands
ReactiveZSetCommands.ZRemCommand.getValues()
from sorted set. Return number of removed elements.zRem
in interface ReactiveZSetCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZIncrByCommand,Double>> zIncrBy(org.reactivestreams.Publisher<ReactiveZSetCommands.ZIncrByCommand> commands)
ReactiveZSetCommands
ReactiveZSetCommands.ZIncrByCommand.getValue()
in sorted set by
ReactiveZSetCommands.ZIncrByCommand.getIncrement()
.zIncrBy
in interface ReactiveZSetCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRankCommand,Long>> zRank(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRankCommand> commands)
ReactiveZSetCommands
ReactiveZSetCommands.ZRankCommand.getDirection()
.zRank
in interface ReactiveZSetCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<ReactiveZSetCommands.ZRangeCommand,RedisZSetCommands.Tuple>> zRange(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeCommand> commands)
ReactiveZSetCommands
RedisZSetCommands.Tuple
s in range from sorted set.zRange
in interface ReactiveZSetCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<ReactiveZSetCommands.ZRangeByScoreCommand,RedisZSetCommands.Tuple>> zRangeByScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeByScoreCommand> commands)
ReactiveZSetCommands
RedisZSetCommands.Tuple
s in range from sorted set.zRangeByScore
in interface ReactiveZSetCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZCountCommand,Long>> zCount(org.reactivestreams.Publisher<ReactiveZSetCommands.ZCountCommand> commands)
ReactiveZSetCommands
Range
. Double.NEGATIVE_INFINITY
for -inf and Double.POSITIVE_INFINITY
for +inf.zCount
in interface ReactiveZSetCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveRedisConnection.KeyCommand,Long>> zCard(org.reactivestreams.Publisher<ReactiveRedisConnection.KeyCommand> commands)
ReactiveZSetCommands
ReactiveRedisConnection.KeyCommand.getKey()
.zCard
in interface ReactiveZSetCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZScoreCommand,Double>> zScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZScoreCommand> commands)
ReactiveZSetCommands
ReactiveZSetCommands.ZScoreCommand.getValue()
from sorted set with key
ReactiveRedisConnection.KeyCommand.getKey()
zScore
in interface ReactiveZSetCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByRankCommand,Long>> zRemRangeByRank(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemRangeByRankCommand> commands)
ReactiveZSetCommands
Range
from sorted set with ReactiveRedisConnection.KeyCommand.getKey()
.zRemRangeByRank
in interface ReactiveZSetCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZRemRangeByScoreCommand,Long>> zRemRangeByScore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRemRangeByScoreCommand> commands)
ReactiveZSetCommands
Range
from sorted set with ReactiveRedisConnection.KeyCommand.getKey()
.zRemRangeByScore
in interface ReactiveZSetCommands
commands
- must not be null.public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZUnionStoreCommand,Long>> zUnionStore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZUnionStoreCommand> commands)
ReactiveZSetCommands
zUnionStore
in interface ReactiveZSetCommands
public reactor.core.publisher.Flux<ReactiveRedisConnection.NumericResponse<ReactiveZSetCommands.ZInterStoreCommand,Long>> zInterStore(org.reactivestreams.Publisher<ReactiveZSetCommands.ZInterStoreCommand> commands)
ReactiveZSetCommands
zInterStore
in interface ReactiveZSetCommands
public reactor.core.publisher.Flux<ReactiveRedisConnection.MultiValueResponse<ReactiveZSetCommands.ZRangeByLexCommand,ByteBuffer>> zRangeByLex(org.reactivestreams.Publisher<ReactiveZSetCommands.ZRangeByLexCommand> commands)
ReactiveZSetCommands
Range
from the sorted set at key in lexicographical ordering. Result is
limited via RedisZSetCommands.Limit
and sorted by ReactiveZSetCommands.ZRangeByLexCommand.getDirection()
.zRangeByLex
in interface ReactiveZSetCommands
commands
- must not be null.protected LettuceReactiveRedisConnection getConnection()
Copyright © 2011-2016–2017 Pivotal Software, Inc.. All rights reserved.