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.org.springframework.data.domain.Sort.DirectiongetLimit()org.springframework.data.domain.Range<Double>getRange()booleanApplies theLimit.reverseScoresWithin(org.springframework.data.domain.Range<Double> range) Creates a newReactiveZSetCommands.ZRangeByScoreCommandgiven aRangeto obtain elements ordered from the highest to the lowest score.scoresWithin(org.springframework.data.domain.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 org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.Command
getName
-
Method Details
-
scoresWithin
public static ReactiveZSetCommands.ZRangeByScoreCommand scoresWithin(org.springframework.data.domain.Range<Double> range) 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
public static ReactiveZSetCommands.ZRangeByScoreCommand reverseScoresWithin(org.springframework.data.domain.Range<Double> range) 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
- Returns:
-
isWithScores
public boolean isWithScores()- Returns:
-
getDirection
public org.springframework.data.domain.Sort.Direction getDirection()- Returns:
-
getLimit
- Returns:
-