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.GeoRadiusCommandgiven aCircle.Creates a newReactiveGeoCommands.GeoRadiusCommandgiven aDistance.withinFeet(double distance) Creates a newReactiveGeoCommands.GeoRadiusCommandgiven a distance inRedisGeoCommands.DistanceUnit.FEET.withinKilometers(double distance) Creates a newReactiveGeoCommands.GeoRadiusCommandgiven a distance inRedisGeoCommands.DistanceUnit.KILOMETERS.withinMeters(double distance) Creates a newReactiveGeoCommands.GeoRadiusCommandgiven a distance inRedisGeoCommands.DistanceUnit.METERS.withinMiles(double distance) Creates a newReactiveGeoCommands.GeoRadiusCommandgiven a distance inRedisGeoCommands.DistanceUnit.MILES.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
-
within
Creates a newReactiveGeoCommands.GeoRadiusCommandgiven aDistance.- Parameters:
distance- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommandfor aDistance.
-
withinMeters
Creates a newReactiveGeoCommands.GeoRadiusCommandgiven a distance inRedisGeoCommands.DistanceUnit.METERS.- Parameters:
distance- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommandfor a distance inRedisGeoCommands.DistanceUnit.METERS.
-
withinKilometers
Creates a newReactiveGeoCommands.GeoRadiusCommandgiven a distance inRedisGeoCommands.DistanceUnit.KILOMETERS.- Parameters:
distance- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommandfor a distance inRedisGeoCommands.DistanceUnit.KILOMETERS.
-
withinMiles
Creates a newReactiveGeoCommands.GeoRadiusCommandgiven a distance inRedisGeoCommands.DistanceUnit.MILES.- Parameters:
distance- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommandfor a distance inRedisGeoCommands.DistanceUnit.MILES.
-
withinFeet
Creates a newReactiveGeoCommands.GeoRadiusCommandgiven a distance inRedisGeoCommands.DistanceUnit.FEET.- Parameters:
distance- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommandfor a distance inRedisGeoCommands.DistanceUnit.FEET.
-
within
Creates a newReactiveGeoCommands.GeoRadiusCommandgiven aCircle.- Parameters:
circle- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommandfor 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.GeoRadiusCommandwithPointapplied.
-
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.GeoRadiusCommandwithRedisGeoCommands.GeoRadiusCommandArgs.Flagapplied.
-
withCoord
Enables coordinate retrieval. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommandwithRedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHCOORDapplied.
-
withDist
Enables distance retrieval. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommandwithRedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHDISTapplied.
-
withArgs
Applies commandRedisGeoCommands.GeoRadiusCommandArgs. Constructs a new command instance with all previously configured properties.- Parameters:
args- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommandwithRedisGeoCommands.GeoRadiusCommandArgsapplied.
-
limitTo
Applies the limit. Constructs a new command instance with all previously configured properties.- Parameters:
limit-- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommandwith 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.GeoRadiusCommandwith sortSort.Directionapplied.
-
orderByDistanceAsc
Applies ascending sort by distance. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommandwith sortSort.Direction.ASCapplied.
-
orderByDistanceDesc
Applies descending sort by distance. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveGeoCommands.GeoRadiusCommandwith sortSort.Direction.DESCapplied.
-
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.GeoRadiusCommandwith 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.
-