Class ReactiveZSetCommands.ZRangeByScoreCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveZSetCommands.ZRangeByScoreCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveZSetCommands
public static class ReactiveZSetCommands.ZRangeByScoreCommand
extends ReactiveRedisConnection.KeyCommand
ZRANGEBYSCORE/ZREVRANGEBYSCORE.
- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfrom
(ByteBuffer key) Applies the key.getLimit()
getRange()
boolean
Applies theLimit
.reverseScoresWithin
(Range<Double> range) Creates a newReactiveZSetCommands.ZRangeByScoreCommand
given aRange
to obtain elements ordered from the highest to the lowest score.scoresWithin
(Range<Double> range) Creates a newReactiveZSetCommands.ZRangeByScoreCommand
given aRange
to obtain elements ordered from the lowest to the highest score.Return the score along with each returned element.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
-
scoresWithin
Creates a newReactiveZSetCommands.ZRangeByScoreCommand
given aRange
to obtain elements ordered from the lowest to the highest score.- Parameters:
range
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZRangeByScoreCommand
forTuple
.
-
reverseScoresWithin
Creates a newReactiveZSetCommands.ZRangeByScoreCommand
given aRange
to obtain elements ordered from the highest to the lowest score.- Parameters:
range
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZRangeByScoreCommand
forTuple
.
-
withScores
Return the score along with each returned element. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveZSetCommands.ZRangeByScoreCommand
with score retrieval applied.
-
from
Applies the key. Constructs a new command instance with all previously configured properties.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZRangeByScoreCommand
with key applied.
-
limitTo
Applies theLimit
. Constructs a new command instance with all previously configured properties.- Parameters:
limit
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZRangeByScoreCommand
withLimit
applied.
-
getRange
- Returns:
-
isWithScores
public boolean isWithScores()- Returns:
-
getDirection
- Returns:
-
getLimit
- Returns:
-