public static class ReactiveGeoCommands.GeoRadiusCommand extends ReactiveRedisConnection.KeyCommand
GEORADIUS
command parameters.getKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public static ReactiveGeoCommands.GeoRadiusCommand within(Distance distance)
ReactiveGeoCommands.GeoRadiusCommand
given a Distance
.distance
- must not be null.ReactiveGeoCommands.GeoRadiusCommand
for a Distance
.public static ReactiveGeoCommands.GeoRadiusCommand withinMeters(double distance)
ReactiveGeoCommands.GeoRadiusCommand
given a distance in RedisGeoCommands.DistanceUnit.METERS
.distance
- must not be null.ReactiveGeoCommands.GeoRadiusCommand
for a distance in RedisGeoCommands.DistanceUnit.METERS
.public static ReactiveGeoCommands.GeoRadiusCommand withinKilometers(double distance)
ReactiveGeoCommands.GeoRadiusCommand
given a distance in RedisGeoCommands.DistanceUnit.KILOMETERS
.distance
- must not be null.ReactiveGeoCommands.GeoRadiusCommand
for a distance in RedisGeoCommands.DistanceUnit.KILOMETERS
.public static ReactiveGeoCommands.GeoRadiusCommand withinMiles(double distance)
ReactiveGeoCommands.GeoRadiusCommand
given a distance in RedisGeoCommands.DistanceUnit.MILES
.distance
- must not be null.ReactiveGeoCommands.GeoRadiusCommand
for a distance in RedisGeoCommands.DistanceUnit.MILES
.public static ReactiveGeoCommands.GeoRadiusCommand withinFeet(double distance)
ReactiveGeoCommands.GeoRadiusCommand
given a distance in RedisGeoCommands.DistanceUnit.FEET
.distance
- must not be null.ReactiveGeoCommands.GeoRadiusCommand
for a distance in RedisGeoCommands.DistanceUnit.FEET
.public static ReactiveGeoCommands.GeoRadiusCommand within(Circle circle)
ReactiveGeoCommands.GeoRadiusCommand
given a Circle
.circle
- must not be null.ReactiveGeoCommands.GeoRadiusCommand
for a Circle
.public ReactiveGeoCommands.GeoRadiusCommand from(Point center)
Point
. Constructs a new command instance with all previously configured
properties.center
- must not be null.ReactiveGeoCommands.GeoRadiusCommand
with Point
applied.public ReactiveGeoCommands.GeoRadiusCommand withFlag(RedisGeoCommands.GeoRadiusCommandArgs.Flag flag)
flags
. Constructs a new command instance with all previously configured properties.flag
- must not be null.ReactiveGeoCommands.GeoRadiusCommand
with RedisGeoCommands.GeoRadiusCommandArgs.Flag
applied.public ReactiveGeoCommands.GeoRadiusCommand withCoord()
ReactiveGeoCommands.GeoRadiusCommand
with RedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHCOORD
applied.public ReactiveGeoCommands.GeoRadiusCommand withDist()
ReactiveGeoCommands.GeoRadiusCommand
with RedisGeoCommands.GeoRadiusCommandArgs.Flag.WITHDIST
applied.public ReactiveGeoCommands.GeoRadiusCommand withArgs(RedisGeoCommands.GeoRadiusCommandArgs args)
RedisGeoCommands.GeoRadiusCommandArgs
. Constructs a new command instance with all previously configured
properties.args
- must not be null.ReactiveGeoCommands.GeoRadiusCommand
with RedisGeoCommands.GeoRadiusCommandArgs
applied.public ReactiveGeoCommands.GeoRadiusCommand limitTo(long limit)
limit
- ReactiveGeoCommands.GeoRadiusCommand
with limit applied.public ReactiveGeoCommands.GeoRadiusCommand sort(Sort.Direction direction)
Sort.Direction
. Constructs a new command instance with all previously configured
properties.direction
- must not be null.ReactiveGeoCommands.GeoRadiusCommand
with sort Sort.Direction
applied.public ReactiveGeoCommands.GeoRadiusCommand orderByDistanceAsc()
ReactiveGeoCommands.GeoRadiusCommand
with sort Sort.Direction.ASC
applied.public ReactiveGeoCommands.GeoRadiusCommand orderByDistanceDesc()
ReactiveGeoCommands.GeoRadiusCommand
with sort Sort.Direction.DESC
applied.public ReactiveGeoCommands.GeoRadiusCommand forKey(ByteBuffer key)
key
- must not be null.ReactiveGeoCommands.GeoRadiusCommand
with key applied.public ReactiveGeoCommands.GeoRadiusCommand storeAt(ByteBuffer key)
key
- must not be null.ReactiveGeoCommands.GeoRadiusCommand
.public ReactiveGeoCommands.GeoRadiusCommand storeDistAt(@Nullable ByteBuffer key)
key
- must not be null.ReactiveGeoCommands.GeoRadiusCommand
.public Optional<Sort.Direction> getDirection()
public Distance getDistance()
public Set<RedisGeoCommands.GeoRadiusCommandArgs.Flag> getFlags()
public Optional<ByteBuffer> getStore()
public Optional<ByteBuffer> getStoreDist()
public Optional<RedisGeoCommands.GeoRadiusCommandArgs> getArgs()
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.