Class ReactiveGeoCommands.GeoAddCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveGeoCommands.GeoAddCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveGeoCommands
GEOADD
command parameters.- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionlocation
(RedisGeoCommands.GeoLocation<ByteBuffer> geoLocation) Creates a newReactiveGeoCommands.GeoAddCommand
givenRedisGeoCommands.GeoLocation
.locations
(Collection<RedisGeoCommands.GeoLocation<ByteBuffer>> geoLocations) Creates a newReactiveGeoCommands.GeoAddCommand
given an index.to
(ByteBuffer key) Applies the Geo set key.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
-
location
public static ReactiveGeoCommands.GeoAddCommand location(RedisGeoCommands.GeoLocation<ByteBuffer> geoLocation) Creates a newReactiveGeoCommands.GeoAddCommand
givenRedisGeoCommands.GeoLocation
.- Parameters:
geoLocation
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoAddCommand
forRedisGeoCommands.GeoLocation
.
-
locations
public static ReactiveGeoCommands.GeoAddCommand locations(Collection<RedisGeoCommands.GeoLocation<ByteBuffer>> geoLocations) Creates a newReactiveGeoCommands.GeoAddCommand
given an index.- Parameters:
geoLocations
- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoAddCommand
for index.
-
to
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.GeoAddCommand
with key applied.
-
getGeoLocations
- Returns:
-