Interface ReactiveGeoCommands
- All Known Subinterfaces:
ReactiveClusterGeoCommands
public interface ReactiveGeoCommands
Redis Geo commands executed using reactive infrastructure.
- Since:
- 2.0
- Author:
- Christoph Strobl, Mark Paluch
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
GEOADD
command parameters.static class
GEODIST
command parameters.static class
GEOHASH
command parameters.static class
GEOPOS
command parameters.static class
GEORADIUSBYMEMBER
command parameters.static class
GEORADIUS
command parameters.static class
GEOSEARCH
command parameters.static class
GEOSEARCHSTORE
command parameters. -
Method Summary
Modifier and TypeMethodDescriptiongeoAdd
(ByteBuffer key, Collection<RedisGeoCommands.GeoLocation<ByteBuffer>> locations) AddRedisGeoCommands.GeoLocation
to key.geoAdd
(ByteBuffer key, Point point, ByteBuffer member) AddPoint
with given member to key.geoAdd
(ByteBuffer key, RedisGeoCommands.GeoLocation<ByteBuffer> location) AddRedisGeoCommands.GeoLocation
to key.geoAdd
(Publisher<ReactiveGeoCommands.GeoAddCommand> commands) AddRedisGeoCommands.GeoLocation
s to key.geoDist
(ByteBuffer key, ByteBuffer from, ByteBuffer to) Get theDistance
between from and to.geoDist
(ByteBuffer key, ByteBuffer from, ByteBuffer to, Metric metric) Get theDistance
between from and to.geoDist
(Publisher<ReactiveGeoCommands.GeoDistCommand> commands) Get theDistance
between from and to.geoHash
(ByteBuffer key, ByteBuffer member) Get geohash representation of the position for the one member.geoHash
(ByteBuffer key, Collection<ByteBuffer> members) Get geohash representation of the position for one or more members.geoHash
(Publisher<ReactiveGeoCommands.GeoHashCommand> commands) Get geohash representation of the position for one or more members.geoPos
(ByteBuffer key, ByteBuffer member) Get thePoint
representation of positions for the members.geoPos
(ByteBuffer key, Collection<ByteBuffer> members) Get thePoint
representation of positions for one or more members.geoPos
(Publisher<ReactiveGeoCommands.GeoPosCommand> commands) Get thePoint
representation of positions for one or more members.default Flux
<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>> geoRadius
(ByteBuffer key, Circle circle) Get the members within the boundaries of a givenCircle
.default Flux
<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>> geoRadius
(ByteBuffer key, Circle circle, RedisGeoCommands.GeoRadiusCommandArgs geoRadiusArgs) Get the members within the boundaries of a givenCircle
applying given parameters.Flux
<ReactiveRedisConnection.CommandResponse<ReactiveGeoCommands.GeoRadiusCommand, Flux<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>>>> Get the members within the boundaries of a givenCircle
applying given parameters.default Flux
<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>> geoRadiusByMember
(ByteBuffer key, ByteBuffer member, Distance distance) Get the members within givenDistance
from member applying given parameters.default Flux
<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>> geoRadiusByMember
(ByteBuffer key, ByteBuffer member, Distance distance, RedisGeoCommands.GeoRadiusCommandArgs geoRadiusArgs) Get the members within givenDistance
from member applying given parameters.Flux
<ReactiveRedisConnection.CommandResponse<ReactiveGeoCommands.GeoRadiusByMemberCommand, Flux<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>>>> Get the members within givenDistance
from member applying given parameters.default Flux
<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>> geoSearch
(ByteBuffer key, GeoReference<ByteBuffer> reference, GeoShape shape, RedisGeoCommands.GeoSearchCommandArgs args) Return the members of a geo set which are within the borders of the area specified by a givenshape
.Flux
<ReactiveRedisConnection.CommandResponse<ReactiveGeoCommands.GeoSearchCommand, Flux<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>>>> Get the members within givenGeoShape
fromGeoReference
applying given parameters.geoSearchStore
(ByteBuffer destKey, ByteBuffer key, GeoReference<ByteBuffer> reference, GeoShape shape, RedisGeoCommands.GeoSearchStoreCommandArgs args) Query the members of a geo set which are within the borders of the area specified by a givenshape
and store the result atdestKey
.Store the members within givenGeoShape
fromGeoReference
applying given parameters in a new geo set.
-
Method Details
-
geoAdd
AddPoint
with given member to key.- Parameters:
key
- must not be null.point
- must not be null.member
- must not be null.- Returns:
- See Also:
-
geoAdd
AddRedisGeoCommands.GeoLocation
to key.- Parameters:
key
- must not be null.location
- must not be null.- Returns:
- See Also:
-
geoAdd
default Mono<Long> geoAdd(ByteBuffer key, Collection<RedisGeoCommands.GeoLocation<ByteBuffer>> locations) AddRedisGeoCommands.GeoLocation
to key.- Parameters:
key
- must not be null.locations
- must not be null.- Returns:
- See Also:
-
geoAdd
Flux<ReactiveRedisConnection.NumericResponse<ReactiveGeoCommands.GeoAddCommand, Long>> geoAdd(Publisher<ReactiveGeoCommands.GeoAddCommand> commands) AddRedisGeoCommands.GeoLocation
s to key.- Parameters:
commands
- must not be null.- Returns:
- See Also:
-
geoDist
Get theDistance
between from and to.- Parameters:
key
- must not be null.from
- must not be null.to
- must not be null.- Returns:
- See Also:
-
geoDist
Get theDistance
between from and to.- Parameters:
key
- must not be null.from
- must not be null.to
- must not be null.metric
- must not be null.- Returns:
- See Also:
-
geoDist
Flux<ReactiveRedisConnection.CommandResponse<ReactiveGeoCommands.GeoDistCommand, Distance>> geoDist(Publisher<ReactiveGeoCommands.GeoDistCommand> commands) Get theDistance
between from and to.- Parameters:
commands
- must not be null.- Returns:
- See Also:
-
geoHash
Get geohash representation of the position for the one member.- Parameters:
key
- must not be null.member
- must not be null.- Returns:
- See Also:
-
geoHash
Get geohash representation of the position for one or more members.- Parameters:
key
- must not be null.members
- must not be null.- Returns:
- See Also:
-
geoHash
Flux<ReactiveRedisConnection.MultiValueResponse<ReactiveGeoCommands.GeoHashCommand, String>> geoHash(Publisher<ReactiveGeoCommands.GeoHashCommand> commands) Get geohash representation of the position for one or more members.- Parameters:
commands
- must not be null.- Returns:
- See Also:
-
geoPos
Get thePoint
representation of positions for the members.- Parameters:
key
- must not be null.member
- must not be null.- Returns:
- See Also:
-
geoPos
Get thePoint
representation of positions for one or more members.- Parameters:
key
- must not be null.members
- must not be null.- Returns:
- See Also:
-
geoPos
Flux<ReactiveRedisConnection.MultiValueResponse<ReactiveGeoCommands.GeoPosCommand, Point>> geoPos(Publisher<ReactiveGeoCommands.GeoPosCommand> commands) Get thePoint
representation of positions for one or more members.- Parameters:
commands
- must not be null.- Returns:
- See Also:
-
geoRadius
default Flux<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>> geoRadius(ByteBuffer key, Circle circle) Get the members within the boundaries of a givenCircle
.- Parameters:
key
- must not be null.circle
- must not be null.- Returns:
- See Also:
-
geoRadius
default Flux<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>> geoRadius(ByteBuffer key, Circle circle, RedisGeoCommands.GeoRadiusCommandArgs geoRadiusArgs) Get the members within the boundaries of a givenCircle
applying given parameters.- Parameters:
key
- must not be null.circle
- must not be null.geoRadiusArgs
- must not be null.- Returns:
- See Also:
-
geoRadius
Flux<ReactiveRedisConnection.CommandResponse<ReactiveGeoCommands.GeoRadiusCommand, Flux<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>>>> geoRadius(Publisher<ReactiveGeoCommands.GeoRadiusCommand> commands) Get the members within the boundaries of a givenCircle
applying given parameters.- Parameters:
commands
-- Returns:
- See Also:
-
geoRadiusByMember
default Flux<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>> geoRadiusByMember(ByteBuffer key, ByteBuffer member, Distance distance) Get the members within givenDistance
from member applying given parameters.- Parameters:
key
- must not be null.member
- must not be null.- Returns:
- See Also:
-
geoRadiusByMember
default Flux<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>> geoRadiusByMember(ByteBuffer key, ByteBuffer member, Distance distance, RedisGeoCommands.GeoRadiusCommandArgs geoRadiusArgs) Get the members within givenDistance
from member applying given parameters.- Parameters:
key
- must not be null.member
- must not be null.geoRadiusArgs
- must not be null.- Returns:
- See Also:
-
geoRadiusByMember
Flux<ReactiveRedisConnection.CommandResponse<ReactiveGeoCommands.GeoRadiusByMemberCommand, Flux<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>>>> geoRadiusByMember(Publisher<ReactiveGeoCommands.GeoRadiusByMemberCommand> commands) Get the members within givenDistance
from member applying given parameters.- Parameters:
commands
- must not be null.- Returns:
- See Also:
-
geoSearch
default Flux<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>> geoSearch(ByteBuffer key, GeoReference<ByteBuffer> reference, GeoShape shape, RedisGeoCommands.GeoSearchCommandArgs args) Return the members of a geo set which are within the borders of the area specified by a givenshape
. The query's center point is provided byGeoReference
.- Parameters:
key
- must not be null.reference
- must not be null.shape
- must not be null.args
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
geoSearch
Flux<ReactiveRedisConnection.CommandResponse<ReactiveGeoCommands.GeoSearchCommand, Flux<GeoResult<RedisGeoCommands.GeoLocation<ByteBuffer>>>>> geoSearch(Publisher<ReactiveGeoCommands.GeoSearchCommand> commands) Get the members within givenGeoShape
fromGeoReference
applying given parameters.- Parameters:
commands
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
geoSearchStore
default Mono<Long> geoSearchStore(ByteBuffer destKey, ByteBuffer key, GeoReference<ByteBuffer> reference, GeoShape shape, RedisGeoCommands.GeoSearchStoreCommandArgs args) Query the members of a geo set which are within the borders of the area specified by a givenshape
and store the result atdestKey
. The query's center point is provided byGeoReference
.- Parameters:
key
- must not be null.reference
- must not be null.shape
- must not be null.args
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
geoSearchStore
Flux<ReactiveRedisConnection.NumericResponse<ReactiveGeoCommands.GeoSearchStoreCommand, Long>> geoSearchStore(Publisher<ReactiveGeoCommands.GeoSearchStoreCommand> commands) Store the members within givenGeoShape
fromGeoReference
applying given parameters in a new geo set.- Parameters:
commands
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-