Class ReactiveGeoCommands.GeoDistCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveGeoCommands.GeoDistCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveGeoCommands
GEODIST
command parameters.- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionand
(ByteBuffer to) Applies the to member.between
(ByteBuffer from) Applies the from member.feet()
Creates a newReactiveGeoCommands.GeoDistCommand
forRedisGeoCommands.DistanceUnit.FEET
.forKey
(ByteBuffer key) Applies the Geo set key member.getFrom()
Optional<org.springframework.data.geo.Metric>
getTo()
Creates a newReactiveGeoCommands.GeoDistCommand
forRedisGeoCommands.DistanceUnit.KILOMETERS
.meters()
Creates a newReactiveGeoCommands.GeoDistCommand
forRedisGeoCommands.DistanceUnit.METERS
.miles()
Creates a newReactiveGeoCommands.GeoDistCommand
forRedisGeoCommands.DistanceUnit.MILES
.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
-
meters
Creates a newReactiveGeoCommands.GeoDistCommand
forRedisGeoCommands.DistanceUnit.METERS
.- Returns:
- a new
ReactiveGeoCommands.GeoDistCommand
forRedisGeoCommands.DistanceUnit.METERS
.
-
kilometers
Creates a newReactiveGeoCommands.GeoDistCommand
forRedisGeoCommands.DistanceUnit.KILOMETERS
.- Returns:
- a new
ReactiveGeoCommands.GeoDistCommand
forRedisGeoCommands.DistanceUnit.KILOMETERS
.
-
miles
Creates a newReactiveGeoCommands.GeoDistCommand
forRedisGeoCommands.DistanceUnit.MILES
.- Returns:
- a new
ReactiveGeoCommands.GeoDistCommand
forRedisGeoCommands.DistanceUnit.MILES
.
-
feet
Creates a newReactiveGeoCommands.GeoDistCommand
forRedisGeoCommands.DistanceUnit.FEET
.- Returns:
- a new
ReactiveGeoCommands.GeoDistCommand
forRedisGeoCommands.DistanceUnit.FEET
.
-
between
Applies the from member. Constructs a new command instance with all previously configured properties.- Parameters:
from
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoDistCommand
with from applied.
-
and
Applies the to member. Constructs a new command instance with all previously configured properties.- Parameters:
to
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoDistCommand
with to applied.
-
forKey
Applies the Geo set key member. Constructs a new command instance with all previously configured properties.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoDistCommand
with key applied.
-
getFrom
- Returns:
- can be null.
-
getTo
- Returns:
- can be null.
-
getMetric
- Returns:
- never null.
-