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.- Since:
- 2.0
- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionlocation(RedisGeoCommands.GeoLocation<ByteBuffer> geoLocation) Creates a newReactiveGeoCommands.GeoAddCommandgivenRedisGeoCommands.GeoLocation.locations(Collection<RedisGeoCommands.GeoLocation<ByteBuffer>> geoLocations) Creates a newReactiveGeoCommands.GeoAddCommandgiven an index.to(ByteBuffer key) Applies the Geo set key.Methods inherited from class ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReactiveRedisConnection.Command
getName
-
Method Details
-
location
public static ReactiveGeoCommands.GeoAddCommand location(RedisGeoCommands.GeoLocation<ByteBuffer> geoLocation) Creates a newReactiveGeoCommands.GeoAddCommandgivenRedisGeoCommands.GeoLocation.- Parameters:
geoLocation- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoAddCommandforRedisGeoCommands.GeoLocation.
-
locations
public static ReactiveGeoCommands.GeoAddCommand locations(Collection<RedisGeoCommands.GeoLocation<ByteBuffer>> geoLocations) Creates a newReactiveGeoCommands.GeoAddCommandgiven an index.- Parameters:
geoLocations- must not be null.- Returns:
- a new
ReactiveGeoCommands.GeoAddCommandfor 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.GeoAddCommandwith key applied.
-
getGeoLocations
- Returns:
-