Interface ReactiveGeoOperations<K,M>
public interface ReactiveGeoOperations<K,M>
Reactive Redis operations for Geo Commands.
- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Long>
add
(K key, Iterable<RedisGeoCommands.GeoLocation<M>> locations) AddRedisGeoCommands.GeoLocation
s to keyreactor.core.publisher.Mono<Long>
reactor.core.publisher.Flux<Long>
add
(K key, org.reactivestreams.Publisher<? extends Collection<RedisGeoCommands.GeoLocation<M>>> locations) AddRedisGeoCommands.GeoLocation
s to keyreactor.core.publisher.Mono<Long>
AddPoint
with given member name to key.reactor.core.publisher.Mono<Long>
add
(K key, RedisGeoCommands.GeoLocation<M> location) AddRedisGeoCommands.GeoLocation
to key.reactor.core.publisher.Mono<Boolean>
Removes the given key.reactor.core.publisher.Mono<Distance>
Get theDistance
between member1 and member2.reactor.core.publisher.Mono<Distance>
reactor.core.publisher.Mono<String>
Get Geohash representation of the position for one or more members.Get Geohash representation of the position for one or more members.reactor.core.publisher.Mono<Point>
Get thePoint
representation of positions for one or more members.Get thePoint
representation of positions for one or more members.reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>>
Get the members within the circle defined by the members coordinates and given radius.reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>>
Get the members within the circle defined by the members coordinates and given radius applyingMetric
.reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>>
radius
(K key, M member, Distance distance, RedisGeoCommands.GeoRadiusCommandArgs args) Get the members within the circle defined by the members coordinates and given radius applyingMetric
andRedisGeoCommands.GeoRadiusCommandArgs
.reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>>
Get the members within the boundaries of a givenCircle
.reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>>
radius
(K key, Circle within, RedisGeoCommands.GeoRadiusCommandArgs args) Get the members within the boundaries of a givenCircle
applyingRedisGeoCommands.GeoRadiusCommandArgs
.reactor.core.publisher.Mono<Long>
Remove the members.default reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>>
Get the members within the boundaries of a givenCircle
.default reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>>
search
(K key, GeoReference<M> reference, Distance radius) Get the members usingGeoReference
as center of the query within the boundaries of a givenradius
.default reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>>
search
(K key, GeoReference<M> reference, Distance radius, RedisGeoCommands.GeoSearchCommandArgs args) Get the members usingGeoReference
as center of the query within the boundaries of a givenradius
applyingRedisGeoCommands.GeoRadiusCommandArgs
.default reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>>
search
(K key, GeoReference<M> reference, BoundingBox boundingBox) Get the members usingGeoReference
as center of the query within the boundaries of a given bounding box.default reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>>
search
(K key, GeoReference<M> reference, BoundingBox boundingBox, RedisGeoCommands.GeoSearchCommandArgs args) Get the members usingGeoReference
as center of the query within the boundaries of a given bounding box applyingRedisGeoCommands.GeoRadiusCommandArgs
.reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>>
search
(K key, GeoReference<M> reference, GeoShape geoPredicate, RedisGeoCommands.GeoSearchCommandArgs args) Get the members usingGeoReference
as center of the query within the boundaries of a givenpredicate
applyingRedisGeoCommands.GeoRadiusCommandArgs
.default reactor.core.publisher.Mono<Long>
searchAndStore
(K key, K destKey, Circle within) Get the members within the boundaries of a givenCircle
and store results atdestKey
.default reactor.core.publisher.Mono<Long>
searchAndStore
(K key, K destKey, GeoReference<M> reference, Distance radius) Get the members usingGeoReference
as center of the query within the boundaries of a givenradius
and store results atdestKey
.default reactor.core.publisher.Mono<Long>
searchAndStore
(K key, K destKey, GeoReference<M> reference, Distance radius, RedisGeoCommands.GeoSearchStoreCommandArgs args) Get the members usingGeoReference
as center of the query within the boundaries of a givenradius
applyingRedisGeoCommands.GeoRadiusCommandArgs
and store results atdestKey
.default reactor.core.publisher.Mono<Long>
searchAndStore
(K key, K destKey, GeoReference<M> reference, BoundingBox boundingBox) Get the members usingGeoReference
as center of the query within the boundaries of a given bounding box and store results atdestKey
.default reactor.core.publisher.Mono<Long>
searchAndStore
(K key, K destKey, GeoReference<M> reference, BoundingBox boundingBox, RedisGeoCommands.GeoSearchStoreCommandArgs args) Get the members usingGeoReference
as center of the query within the boundaries of a given bounding box applyingRedisGeoCommands.GeoRadiusCommandArgs
and store results atdestKey
.reactor.core.publisher.Mono<Long>
searchAndStore
(K key, K destKey, GeoReference<M> reference, GeoShape geoPredicate, RedisGeoCommands.GeoSearchStoreCommandArgs args) Get the members usingGeoReference
as center of the query within the boundaries of a givenpredicate
applyingRedisGeoCommands.GeoRadiusCommandArgs
and store results atdestKey
.
-
Method Details
-
add
AddPoint
with given member name to key.- Parameters:
key
- must not be null.point
- must not be null.member
- must not be null.- Returns:
- Number of elements added.
- See Also:
-
add
AddRedisGeoCommands.GeoLocation
to key.- Parameters:
key
- must not be null.location
- must not be null.- Returns:
- Number of elements added.
- See Also:
-
add
- Parameters:
key
- must not be null.memberCoordinateMap
- must not be null.- Returns:
- Number of elements added.
- See Also:
-
add
AddRedisGeoCommands.GeoLocation
s to key- Parameters:
key
- must not be null.locations
- must not be null.- Returns:
- Number of elements added.
- See Also:
-
add
reactor.core.publisher.Flux<Long> add(K key, org.reactivestreams.Publisher<? extends Collection<RedisGeoCommands.GeoLocation<M>>> locations) AddRedisGeoCommands.GeoLocation
s to key- Parameters:
key
- must not be null.locations
- must not be null.- Returns:
- Number of elements added.
- See Also:
-
distance
Get theDistance
between member1 and member2.- Parameters:
key
- must not be null.member1
- must not be null.member2
- must not be null.- Returns:
- can be null.
- See Also:
-
distance
- Parameters:
key
- must not be null.member1
- must not be null.member2
- must not be null.metric
- must not be null.- Returns:
- can be null.
- See Also:
-
hash
Get Geohash representation of the position for one or more members.- Parameters:
key
- must not be null.member
- must not be null.- Returns:
- never null.
- See Also:
-
hash
Get Geohash representation of the position for one or more members.- Parameters:
key
- must not be null.members
- must not be null.- Returns:
- never null.
- See Also:
-
position
Get thePoint
representation of positions for one or more members.- Parameters:
key
- must not be null.member
- must not be null.- Returns:
- never null.
- See Also:
-
position
Get thePoint
representation of positions for one or more members.- Parameters:
key
- must not be null.members
- must not be null.- Returns:
- never null.
- See Also:
-
radius
reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>> radius(K key, Circle within) Get the members within the boundaries of a givenCircle
.- Parameters:
key
- must not be null.within
- must not be null.- Returns:
- never null.
- See Also:
-
radius
reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>> radius(K key, Circle within, RedisGeoCommands.GeoRadiusCommandArgs args) Get the members within the boundaries of a givenCircle
applyingRedisGeoCommands.GeoRadiusCommandArgs
.- Parameters:
key
- must not be null.within
- must not be null.args
- must not be null.- Returns:
- never null.
- See Also:
-
radius
reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>> radius(K key, M member, double radius) Get the members within the circle defined by the members coordinates and given radius.- Parameters:
key
- must not be null.member
- must not be null.radius
-- Returns:
- never null.
- See Also:
-
radius
reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>> radius(K key, M member, Distance distance) Get the members within the circle defined by the members coordinates and given radius applyingMetric
.- Parameters:
key
- must not be null.member
- must not be null.distance
- must not be null.- Returns:
- never null.
- See Also:
-
radius
reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>> radius(K key, M member, Distance distance, RedisGeoCommands.GeoRadiusCommandArgs args) Get the members within the circle defined by the members coordinates and given radius applyingMetric
andRedisGeoCommands.GeoRadiusCommandArgs
.- Parameters:
key
- must not be null.member
- must not be null.distance
- must not be null.args
- must not be null.- Returns:
- never null.
- See Also:
-
remove
Remove the members.- Parameters:
key
- must not be null.members
- must not be null.- Returns:
- Number of elements removed.
-
delete
Removes the given key.- Parameters:
key
- must not be null.
-
search
default reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>> search(K key, Circle within) Get the members within the boundaries of a givenCircle
.- Parameters:
key
- must not be null.within
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
search
default reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>> search(K key, GeoReference<M> reference, Distance radius) Get the members usingGeoReference
as center of the query within the boundaries of a givenradius
.- Parameters:
key
- must not be null.reference
- must not be null.radius
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
search
default reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>> search(K key, GeoReference<M> reference, Distance radius, RedisGeoCommands.GeoSearchCommandArgs args) Get the members usingGeoReference
as center of the query within the boundaries of a givenradius
applyingRedisGeoCommands.GeoRadiusCommandArgs
.- Parameters:
key
- must not be null.reference
- must not be null.radius
- must not be null.args
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
search
default reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>> search(K key, GeoReference<M> reference, BoundingBox boundingBox) Get the members usingGeoReference
as center of the query within the boundaries of a given bounding box.- Parameters:
key
- must not be null.reference
- must not be null.boundingBox
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
search
default reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>> search(K key, GeoReference<M> reference, BoundingBox boundingBox, RedisGeoCommands.GeoSearchCommandArgs args) Get the members usingGeoReference
as center of the query within the boundaries of a given bounding box applyingRedisGeoCommands.GeoRadiusCommandArgs
.- Parameters:
key
- must not be null.reference
- must not be null.boundingBox
- must not be null.args
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
search
reactor.core.publisher.Flux<GeoResult<RedisGeoCommands.GeoLocation<M>>> search(K key, GeoReference<M> reference, GeoShape geoPredicate, RedisGeoCommands.GeoSearchCommandArgs args) Get the members usingGeoReference
as center of the query within the boundaries of a givenpredicate
applyingRedisGeoCommands.GeoRadiusCommandArgs
.- Parameters:
key
- must not be null.reference
- must not be null.geoPredicate
- must not be null.args
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
searchAndStore
Get the members within the boundaries of a givenCircle
and store results atdestKey
.- Parameters:
key
- must not be null.within
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
searchAndStore
default reactor.core.publisher.Mono<Long> searchAndStore(K key, K destKey, GeoReference<M> reference, Distance radius) Get the members usingGeoReference
as center of the query within the boundaries of a givenradius
and store results atdestKey
.- Parameters:
key
- must not be null.reference
- must not be null.radius
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
searchAndStore
default reactor.core.publisher.Mono<Long> searchAndStore(K key, K destKey, GeoReference<M> reference, Distance radius, RedisGeoCommands.GeoSearchStoreCommandArgs args) Get the members usingGeoReference
as center of the query within the boundaries of a givenradius
applyingRedisGeoCommands.GeoRadiusCommandArgs
and store results atdestKey
.- Parameters:
key
- must not be null.reference
- must not be null.radius
- must not be null.args
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
searchAndStore
default reactor.core.publisher.Mono<Long> searchAndStore(K key, K destKey, GeoReference<M> reference, BoundingBox boundingBox) Get the members usingGeoReference
as center of the query within the boundaries of a given bounding box and store results atdestKey
.- Parameters:
key
- must not be null.reference
- must not be null.boundingBox
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
searchAndStore
default reactor.core.publisher.Mono<Long> searchAndStore(K key, K destKey, GeoReference<M> reference, BoundingBox boundingBox, RedisGeoCommands.GeoSearchStoreCommandArgs args) Get the members usingGeoReference
as center of the query within the boundaries of a given bounding box applyingRedisGeoCommands.GeoRadiusCommandArgs
and store results atdestKey
.- Parameters:
key
- must not be null.reference
- must not be null.boundingBox
- must not be null.args
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
searchAndStore
reactor.core.publisher.Mono<Long> searchAndStore(K key, K destKey, GeoReference<M> reference, GeoShape geoPredicate, RedisGeoCommands.GeoSearchStoreCommandArgs args) Get the members usingGeoReference
as center of the query within the boundaries of a givenpredicate
applyingRedisGeoCommands.GeoRadiusCommandArgs
and store results atdestKey
.- Parameters:
key
- must not be null.reference
- must not be null.geoPredicate
- must not be null.args
- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-