Class ReactiveGeoCommands.GeoRadiusCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveGeoCommands.GeoRadiusCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveGeoCommands
GEORADIUS
command parameters.- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionforKey
(ByteBuffer key) Applies the Geo set key.Sets the centerPoint
.getArgs()
getFlags()
getLimit()
getPoint()
getStore()
limitTo
(long limit) Applies the limit.Applies ascending sort by distance.Applies descending sort by distance.sort
(Sort.Direction direction) Applies the distance sortSort.Direction
.storeAt
(ByteBuffer key) NOTE: STORE option is not compatible with WITHDIST, WITHHASH and WITHCOORDS options.storeDistAt
(ByteBuffer key) NOTE: STOREDIST option is not compatible with WITHDIST, WITHHASH and WITHCOORDS options.Applies commandRedisGeoCommands.GeoRadiusCommandArgs
.Enables coordinate retrieval.withDist()
Enables distance retrieval.Applies commandflags
.Creates a newReactiveGeoCommands.GeoRadiusCommand
given aCircle
.Creates a newReactiveGeoCommands.GeoRadiusCommand
given aDistance
.withinFeet
(double distance) Creates a newReactiveGeoCommands.GeoRadiusCommand
given a distance inRedisGeoCommands.DistanceUnit.FEET
.withinKilometers
(double distance) Creates a newReactiveGeoCommands.GeoRadiusCommand
given a distance inRedisGeoCommands.DistanceUnit.KILOMETERS
.withinMeters
(double distance) Creates a newReactiveGeoCommands.GeoRadiusCommand
given a distance inRedisGeoCommands.DistanceUnit.METERS
.withinMiles
(double distance) Creates a newReactiveGeoCommands.GeoRadiusCommand
given a distance inRedisGeoCommands.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
-
within
Creates a newReactiveGeoCommands.GeoRadiusCommand
given aDistance
.- Parameters:
distance
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
for aDistance
.
-
withinMeters
Creates a newReactiveGeoCommands.GeoRadiusCommand
given a distance inRedisGeoCommands.DistanceUnit.METERS
.- Parameters:
distance
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
for a distance inRedisGeoCommands.DistanceUnit.METERS
.
-
withinKilometers
Creates a newReactiveGeoCommands.GeoRadiusCommand
given a distance inRedisGeoCommands.DistanceUnit.KILOMETERS
.- Parameters:
distance
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
for a distance inRedisGeoCommands.DistanceUnit.KILOMETERS
.
-
withinMiles
Creates a newReactiveGeoCommands.GeoRadiusCommand
given a distance inRedisGeoCommands.DistanceUnit.MILES
.- Parameters:
distance
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
for a distance inRedisGeoCommands.DistanceUnit.MILES
.
-
withinFeet
Creates a newReactiveGeoCommands.GeoRadiusCommand
given a distance inRedisGeoCommands.DistanceUnit.FEET
.- Parameters:
distance
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
for a distance inRedisGeoCommands.DistanceUnit.FEET
.
-
within
Creates a newReactiveGeoCommands.GeoRadiusCommand
given aCircle
.- Parameters:
circle
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
for aCircle
.
-
from
Sets the centerPoint
. Constructs a new command instance with all previously configured properties.- Parameters:
center
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
withPoint
applied.
-
withFlag
public ReactiveGeoCommands.GeoRadiusCommand withFlag(RedisGeoCommands.GeoRadiusCommandArgs.Flag flag) Applies commandflags
. Constructs a new command instance with all previously configured properties.- Parameters:
flag
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
withRedisGeoCommands.GeoRadiusCommandArgs.Flag
applied.
-
withCoord
Enables coordinate retrieval. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
withRedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHCOORD
applied.
-
withDist
Enables distance retrieval. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
withRedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHDIST
applied.
-
withArgs
Applies commandRedisGeoCommands.GeoRadiusCommandArgs
. Constructs a new command instance with all previously configured properties.- Parameters:
args
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
withRedisGeoCommands.GeoRadiusCommandArgs
applied.
-
limitTo
Applies the limit. Constructs a new command instance with all previously configured properties.- Parameters:
limit
-- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
with limit applied.
-
sort
Applies the distance sortSort.Direction
. Constructs a new command instance with all previously configured properties.- Parameters:
direction
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
with sortSort.Direction
applied.
-
orderByDistanceAsc
Applies ascending sort by distance. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
with sortSort.Direction.ASC
applied.
-
orderByDistanceDesc
Applies descending sort by distance. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
with sortSort.Direction.DESC
applied.
-
forKey
Applies the Geo set key. Constructs a new command instance with all previously configured properties.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommand
with key applied.
-
storeAt
NOTE: STORE option is not compatible with WITHDIST, WITHHASH and WITHCOORDS options.- Parameters:
key
- must not be null.- Returns:
- new instance of
ReactiveGeoCommands.GeoRadiusCommand
.
-
storeDistAt
NOTE: STOREDIST option is not compatible with WITHDIST, WITHHASH and WITHCOORDS options.- Parameters:
key
- must not be null.- Returns:
- new instance of
ReactiveGeoCommands.GeoRadiusCommand
.
-
getDirection
- Returns:
- never null.
-
getDistance
- Returns:
- never null.
-
getFlags
- Returns:
- never null.
-
getLimit
- Returns:
- never null.
-
getPoint
- Returns:
- can be null.
-
getStore
- Returns:
- never null.
-
getStoreDist
- Returns:
- never null.
-
getArgs
- Returns:
- never null.
-