public interface ReactiveGeoOperations<K,M>
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Long> |
add(K key,
Iterable<RedisGeoCommands.GeoLocation<M>> locations)
Add
RedisGeoCommands.GeoLocation s to key |
reactor.core.publisher.Mono<Long> |
add(K key,
Map<M,org.springframework.data.geo.Point> memberCoordinateMap)
Add
Map of member / Point pairs to key. |
reactor.core.publisher.Mono<Long> |
add(K key,
org.springframework.data.geo.Point point,
M member)
Add
Point with given member name to key. |
reactor.core.publisher.Flux<Long> |
add(K key,
org.reactivestreams.Publisher<? extends Collection<RedisGeoCommands.GeoLocation<M>>> locations)
Add
RedisGeoCommands.GeoLocation s to key |
reactor.core.publisher.Mono<Long> |
add(K key,
RedisGeoCommands.GeoLocation<M> location)
Add
RedisGeoCommands.GeoLocation to key. |
reactor.core.publisher.Mono<Boolean> |
delete(K key)
Removes the given key.
|
reactor.core.publisher.Mono<org.springframework.data.geo.Distance> |
distance(K key,
M member1,
M member2)
Get the
Distance between member1 and member2. |
reactor.core.publisher.Mono<org.springframework.data.geo.Distance> |
distance(K key,
M member1,
M member2,
org.springframework.data.geo.Metric metric)
Get the
Distance between member1 and member2 in the given Metric . |
reactor.core.publisher.Mono<List<String>> |
hash(K key,
M... members)
Get Geohash representation of the position for one or more members.
|
reactor.core.publisher.Mono<String> |
hash(K key,
M member)
Get Geohash representation of the position for one or more members.
|
reactor.core.publisher.Mono<List<org.springframework.data.geo.Point>> |
position(K key,
M... members)
Get the
Point representation of positions for one or more members. |
reactor.core.publisher.Mono<org.springframework.data.geo.Point> |
position(K key,
M member)
Get the
Point representation of positions for one or more members. |
reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> |
radius(K key,
org.springframework.data.geo.Circle within)
Get the members within the boundaries of a given
Circle . |
reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> |
radius(K key,
org.springframework.data.geo.Circle within,
RedisGeoCommands.GeoRadiusCommandArgs args)
Get the members within the boundaries of a given
Circle applying RedisGeoCommands.GeoRadiusCommandArgs . |
reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> |
radius(K key,
M member,
org.springframework.data.geo.Distance distance)
Get the members within the circle defined by the members coordinates and given
radius applying
Metric . |
reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> |
radius(K key,
M member,
org.springframework.data.geo.Distance distance,
RedisGeoCommands.GeoRadiusCommandArgs args)
Get the members within the circle defined by the members coordinates and given
radius applying
Metric and RedisGeoCommands.GeoRadiusCommandArgs . |
reactor.core.publisher.Flux<org.springframework.data.geo.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.
|
reactor.core.publisher.Mono<Long> |
remove(K key,
M... members)
Remove the members.
|
default reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> |
search(K key,
org.springframework.data.geo.Circle within)
Get the members within the boundaries of a given
Circle . |
default reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> |
search(K key,
GeoReference<M> reference,
BoundingBox boundingBox)
Get the members using
GeoReference as center of the query within the boundaries of a given
bounding box. |
default reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> |
search(K key,
GeoReference<M> reference,
BoundingBox boundingBox,
RedisGeoCommands.GeoSearchCommandArgs args)
Get the members using
GeoReference as center of the query within the boundaries of a given
bounding box applying RedisGeoCommands.GeoRadiusCommandArgs . |
default reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> |
search(K key,
GeoReference<M> reference,
org.springframework.data.geo.Distance radius)
Get the members using
GeoReference as center of the query within the boundaries of a given
radius . |
default reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> |
search(K key,
GeoReference<M> reference,
org.springframework.data.geo.Distance radius,
RedisGeoCommands.GeoSearchCommandArgs args)
Get the members using
GeoReference as center of the query within the boundaries of a given
radius applying RedisGeoCommands.GeoRadiusCommandArgs . |
reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> |
search(K key,
GeoReference<M> reference,
GeoShape geoPredicate,
RedisGeoCommands.GeoSearchCommandArgs args)
Get the members using
GeoReference as center of the query within the boundaries of a given
predicate applying RedisGeoCommands.GeoRadiusCommandArgs . |
default reactor.core.publisher.Mono<Long> |
searchAndStore(K key,
K destKey,
org.springframework.data.geo.Circle within)
Get the members within the boundaries of a given
Circle and store results at destKey . |
default reactor.core.publisher.Mono<Long> |
searchAndStore(K key,
K destKey,
GeoReference<M> reference,
BoundingBox boundingBox)
Get the members using
GeoReference as center of the query within the boundaries of a given
bounding box and store results at destKey . |
default reactor.core.publisher.Mono<Long> |
searchAndStore(K key,
K destKey,
GeoReference<M> reference,
BoundingBox boundingBox,
RedisGeoCommands.GeoSearchStoreCommandArgs args)
Get the members using
GeoReference as center of the query within the boundaries of a given
bounding box applying RedisGeoCommands.GeoRadiusCommandArgs and store results at destKey . |
default reactor.core.publisher.Mono<Long> |
searchAndStore(K key,
K destKey,
GeoReference<M> reference,
org.springframework.data.geo.Distance radius)
Get the members using
GeoReference as center of the query within the boundaries of a given
radius and store results at destKey . |
default reactor.core.publisher.Mono<Long> |
searchAndStore(K key,
K destKey,
GeoReference<M> reference,
org.springframework.data.geo.Distance radius,
RedisGeoCommands.GeoSearchStoreCommandArgs args)
Get the members using
GeoReference as center of the query within the boundaries of a given
radius applying RedisGeoCommands.GeoRadiusCommandArgs and store results at destKey . |
reactor.core.publisher.Mono<Long> |
searchAndStore(K key,
K destKey,
GeoReference<M> reference,
GeoShape geoPredicate,
RedisGeoCommands.GeoSearchStoreCommandArgs args)
Get the members using
GeoReference as center of the query within the boundaries of a given
predicate applying RedisGeoCommands.GeoRadiusCommandArgs and store results at destKey . |
reactor.core.publisher.Mono<Long> add(K key, org.springframework.data.geo.Point point, M member)
Point
with given member name to key.key
- must not be null.point
- must not be null.member
- must not be null.reactor.core.publisher.Mono<Long> add(K key, RedisGeoCommands.GeoLocation<M> location)
RedisGeoCommands.GeoLocation
to key.key
- must not be null.location
- must not be null.reactor.core.publisher.Mono<Long> add(K key, Map<M,org.springframework.data.geo.Point> memberCoordinateMap)
Map
of member / Point
pairs to key.key
- must not be null.memberCoordinateMap
- must not be null.reactor.core.publisher.Mono<Long> add(K key, Iterable<RedisGeoCommands.GeoLocation<M>> locations)
RedisGeoCommands.GeoLocation
s to keykey
- must not be null.locations
- must not be null.reactor.core.publisher.Flux<Long> add(K key, org.reactivestreams.Publisher<? extends Collection<RedisGeoCommands.GeoLocation<M>>> locations)
RedisGeoCommands.GeoLocation
s to keykey
- must not be null.locations
- must not be null.reactor.core.publisher.Mono<org.springframework.data.geo.Distance> distance(K key, M member1, M member2)
Distance
between member1 and member2.key
- must not be null.member1
- must not be null.member2
- must not be null.reactor.core.publisher.Mono<org.springframework.data.geo.Distance> distance(K key, M member1, M member2, org.springframework.data.geo.Metric metric)
Distance
between member1 and member2 in the given Metric
.key
- must not be null.member1
- must not be null.member2
- must not be null.metric
- must not be null.reactor.core.publisher.Mono<String> hash(K key, M member)
key
- must not be null.member
- must not be null.reactor.core.publisher.Mono<List<String>> hash(K key, M... members)
key
- must not be null.members
- must not be null.reactor.core.publisher.Mono<org.springframework.data.geo.Point> position(K key, M member)
Point
representation of positions for one or more members.key
- must not be null.member
- must not be null.reactor.core.publisher.Mono<List<org.springframework.data.geo.Point>> position(K key, M... members)
Point
representation of positions for one or more members.key
- must not be null.members
- must not be null.reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> radius(K key, org.springframework.data.geo.Circle within)
Circle
.key
- must not be null.within
- must not be null.reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> radius(K key, org.springframework.data.geo.Circle within, RedisGeoCommands.GeoRadiusCommandArgs args)
Circle
applying RedisGeoCommands.GeoRadiusCommandArgs
.key
- must not be null.within
- must not be null.args
- must not be null.reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> radius(K key, M member, double radius)
key
- must not be null.member
- must not be null.radius
- reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> radius(K key, M member, org.springframework.data.geo.Distance distance)
Metric
.key
- must not be null.member
- must not be null.distance
- must not be null.reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> radius(K key, M member, org.springframework.data.geo.Distance distance, RedisGeoCommands.GeoRadiusCommandArgs args)
Metric
and RedisGeoCommands.GeoRadiusCommandArgs
.key
- must not be null.member
- must not be null.distance
- must not be null.args
- must not be null.reactor.core.publisher.Mono<Long> remove(K key, M... members)
key
- must not be null.members
- must not be null.reactor.core.publisher.Mono<Boolean> delete(K key)
key
- must not be null.default reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> search(K key, org.springframework.data.geo.Circle within)
Circle
.key
- must not be null.within
- must not be null.default reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> search(K key, GeoReference<M> reference, org.springframework.data.geo.Distance radius)
GeoReference
as center of the query within the boundaries of a given
radius
.key
- must not be null.reference
- must not be null.radius
- must not be null.default reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> search(K key, GeoReference<M> reference, org.springframework.data.geo.Distance radius, RedisGeoCommands.GeoSearchCommandArgs args)
GeoReference
as center of the query within the boundaries of a given
radius
applying RedisGeoCommands.GeoRadiusCommandArgs
.key
- must not be null.reference
- must not be null.radius
- must not be null.args
- must not be null.default reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> search(K key, GeoReference<M> reference, BoundingBox boundingBox)
GeoReference
as center of the query within the boundaries of a given
bounding box.key
- must not be null.reference
- must not be null.boundingBox
- must not be null.default reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> search(K key, GeoReference<M> reference, BoundingBox boundingBox, RedisGeoCommands.GeoSearchCommandArgs args)
GeoReference
as center of the query within the boundaries of a given
bounding box applying RedisGeoCommands.GeoRadiusCommandArgs
.key
- must not be null.reference
- must not be null.boundingBox
- must not be null.args
- must not be null.reactor.core.publisher.Flux<org.springframework.data.geo.GeoResult<RedisGeoCommands.GeoLocation<M>>> search(K key, GeoReference<M> reference, GeoShape geoPredicate, RedisGeoCommands.GeoSearchCommandArgs args)
GeoReference
as center of the query within the boundaries of a given
predicate
applying RedisGeoCommands.GeoRadiusCommandArgs
.key
- must not be null.reference
- must not be null.geoPredicate
- must not be null.args
- must not be null.default reactor.core.publisher.Mono<Long> searchAndStore(K key, K destKey, org.springframework.data.geo.Circle within)
Circle
and store results at destKey
.key
- must not be null.within
- must not be null.default reactor.core.publisher.Mono<Long> searchAndStore(K key, K destKey, GeoReference<M> reference, org.springframework.data.geo.Distance radius)
GeoReference
as center of the query within the boundaries of a given
radius
and store results at destKey
.key
- must not be null.reference
- must not be null.radius
- must not be null.default reactor.core.publisher.Mono<Long> searchAndStore(K key, K destKey, GeoReference<M> reference, org.springframework.data.geo.Distance radius, RedisGeoCommands.GeoSearchStoreCommandArgs args)
GeoReference
as center of the query within the boundaries of a given
radius
applying RedisGeoCommands.GeoRadiusCommandArgs
and store results at destKey
.key
- must not be null.reference
- must not be null.radius
- must not be null.args
- must not be null.default reactor.core.publisher.Mono<Long> searchAndStore(K key, K destKey, GeoReference<M> reference, BoundingBox boundingBox)
GeoReference
as center of the query within the boundaries of a given
bounding box and store results at destKey
.key
- must not be null.reference
- must not be null.boundingBox
- must not be null.default reactor.core.publisher.Mono<Long> searchAndStore(K key, K destKey, GeoReference<M> reference, BoundingBox boundingBox, RedisGeoCommands.GeoSearchStoreCommandArgs args)
GeoReference
as center of the query within the boundaries of a given
bounding box applying RedisGeoCommands.GeoRadiusCommandArgs
and store results at destKey
.key
- must not be null.reference
- must not be null.boundingBox
- must not be null.args
- must not be null.reactor.core.publisher.Mono<Long> searchAndStore(K key, K destKey, GeoReference<M> reference, GeoShape geoPredicate, RedisGeoCommands.GeoSearchStoreCommandArgs args)
GeoReference
as center of the query within the boundaries of a given
predicate
applying RedisGeoCommands.GeoRadiusCommandArgs
and store results at destKey
.key
- must not be null.reference
- must not be null.geoPredicate
- must not be null.args
- must not be null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.