Class ReactiveZSetCommands.ZRangeCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveZSetCommands.ZRangeCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
ReactiveZSetCommands
ZRANGE
/ZREVRANGE command parameters.- Since:
- 2.0
- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfrom
(ByteBuffer key) Applies the key.getRange()
boolean
reverseValuesWithin
(Range<Long> range) Creates a newReactiveZSetCommands.ZRangeCommand
given aRange
to obtain elements ordered from the highest to the lowest score.valuesWithin
(Range<Long> range) Creates a newReactiveZSetCommands.ZRangeCommand
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 ReactiveRedisConnection.KeyCommand
getKey
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ReactiveRedisConnection.Command
getName
-
Method Details
-
valuesWithin
Creates a newReactiveZSetCommands.ZRangeCommand
given aRange
to obtain elements ordered from the lowest to the highest score.- Parameters:
range
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZRangeCommand
forTuple
.
-
reverseValuesWithin
Creates a newReactiveZSetCommands.ZRangeCommand
given aRange
to obtain elements ordered from the highest to the lowest score.- Parameters:
range
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZRangeCommand
forTuple
.
-
withScores
Return the score along with each returned element. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveZSetCommands.ZRangeCommand
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.ZRangeCommand
with key applied.
-
getRange
-
isWithScores
public boolean isWithScores()- Returns:
-
getDirection
- Returns:
-