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.
- Since:
- 2.0
- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfrom(ByteBuffer key) Applies the key.getLimit()getRange()booleanApplies theLimit.reverseScoresWithin(Range<Double> range) Creates a newReactiveZSetCommands.ZRangeByScoreCommandgiven aRangeto obtain elements ordered from the highest to the lowest score.scoresWithin(Range<Double> range) Creates a newReactiveZSetCommands.ZRangeByScoreCommandgiven aRangeto obtain elements ordered from the lowest to the highest score.Return the score along with each returned element.Methods inherited from class ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReactiveRedisConnection.Command
getName
-
Method Details
-
scoresWithin
Creates a newReactiveZSetCommands.ZRangeByScoreCommandgiven aRangeto obtain elements ordered from the lowest to the highest score.- Parameters:
range- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZRangeByScoreCommandforTuple.
-
reverseScoresWithin
Creates a newReactiveZSetCommands.ZRangeByScoreCommandgiven aRangeto obtain elements ordered from the highest to the lowest score.- Parameters:
range- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZRangeByScoreCommandforTuple.
-
withScores
Return the score along with each returned element. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveZSetCommands.ZRangeByScoreCommandwith 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.ZRangeByScoreCommandwith 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.ZRangeByScoreCommandwithLimitapplied.
-
getRange
-
isWithScores
public boolean isWithScores()- Returns:
-
getDirection
- Returns:
-
getLimit
-