public interface RedisGeoReactiveCommands<K,V>
Modifier and Type | Method and Description |
---|---|
Mono<Long> |
geoadd(K key,
double longitude,
double latitude,
V member)
Single geo add.
|
Mono<Long> |
geoadd(K key,
double longitude,
double latitude,
V member,
GeoAddArgs args)
Single geo add.
|
Mono<Long> |
geoadd(K key,
GeoAddArgs args,
GeoValue<V>... values)
Multi geo add.
|
Mono<Long> |
geoadd(K key,
GeoAddArgs args,
Object... lngLatMember)
Multi geo add.
|
Mono<Long> |
geoadd(K key,
GeoValue<V>... values)
Multi geo add.
|
Mono<Long> |
geoadd(K key,
Object... lngLatMember)
Multi geo add.
|
Mono<Double> |
geodist(K key,
V from,
V to,
GeoArgs.Unit unit)
Retrieve distance between points
from and to . |
Flux<Value<String>> |
geohash(K key,
V... members)
Retrieve Geohash strings representing the position of one or more elements in a sorted set value representing a
geospatial index.
|
Flux<Value<GeoCoordinates>> |
geopos(K key,
V... members)
Get geo coordinates for the
members . |
Flux<V> |
georadius(K key,
double longitude,
double latitude,
double distance,
GeoArgs.Unit unit)
Retrieve members selected by distance with the center of
longitude and latitude . |
Flux<GeoWithin<V>> |
georadius(K key,
double longitude,
double latitude,
double distance,
GeoArgs.Unit unit,
GeoArgs geoArgs)
Retrieve members selected by distance with the center of
longitude and latitude . |
Mono<Long> |
georadius(K key,
double longitude,
double latitude,
double distance,
GeoArgs.Unit unit,
GeoRadiusStoreArgs<K> geoRadiusStoreArgs)
Perform a
georadius(Object, double, double, double, GeoArgs.Unit, GeoArgs) query and store the results in a
sorted set. |
Flux<V> |
georadiusbymember(K key,
V member,
double distance,
GeoArgs.Unit unit)
Retrieve members selected by distance with the center of
member . |
Flux<GeoWithin<V>> |
georadiusbymember(K key,
V member,
double distance,
GeoArgs.Unit unit,
GeoArgs geoArgs)
Retrieve members selected by distance with the center of
member . |
Mono<Long> |
georadiusbymember(K key,
V member,
double distance,
GeoArgs.Unit unit,
GeoRadiusStoreArgs<K> geoRadiusStoreArgs)
Perform a
georadiusbymember(Object, Object, double, GeoArgs.Unit, GeoArgs) query and store the results in a
sorted set. |
Flux<V> |
geosearch(K key,
GeoSearch.GeoRef<K> reference,
GeoSearch.GeoPredicate predicate)
Retrieve members selected by distance with the center of
reference the search predicate . |
Flux<GeoWithin<V>> |
geosearch(K key,
GeoSearch.GeoRef<K> reference,
GeoSearch.GeoPredicate predicate,
GeoArgs geoArgs)
Retrieve members selected by distance with the center of
reference the search predicate . |
Mono<Long> |
geosearchstore(K destination,
K key,
GeoSearch.GeoRef<K> reference,
GeoSearch.GeoPredicate predicate,
GeoArgs geoArgs,
boolean storeDist)
Perform a
geosearch(Object, GeoSearch.GeoRef, GeoSearch.GeoPredicate, GeoArgs) query and store the results in a
sorted set. |
Mono<Long> geoadd(K key, double longitude, double latitude, V member)
key
- the key of the geo set.longitude
- the longitude coordinate according to WGS84.latitude
- the latitude coordinate according to WGS84.member
- the member to add.Mono<Long> geoadd(K key, double longitude, double latitude, V member, GeoAddArgs args)
key
- the key of the geo set.longitude
- the longitude coordinate according to WGS84.latitude
- the latitude coordinate according to WGS84.member
- the member to add.args
- additional arguments.Mono<Long> geoadd(K key, Object... lngLatMember)
key
- the key of the geo set.lngLatMember
- triplets of double longitude, double latitude and V member.Mono<Long> geoadd(K key, GeoValue<V>... values)
key
- the key of the geo set.values
- GeoValue
values to add.Mono<Long> geoadd(K key, GeoAddArgs args, Object... lngLatMember)
key
- the key of the geo set.args
- additional arguments.lngLatMember
- triplets of double longitude, double latitude and V member.Mono<Long> geoadd(K key, GeoAddArgs args, GeoValue<V>... values)
key
- the key of the geo set.args
- additional arguments.values
- GeoValue
values to add.Mono<Double> geodist(K key, V from, V to, GeoArgs.Unit unit)
from
and to
. If one or more elements are missing null
is
returned. Default in meters by, otherwise according to unit
key
- the key of the geo set.from
- from member.to
- to member.unit
- distance unit.from
and to
. If one or more elements are missing null
is
returned.Flux<Value<String>> geohash(K key, V... members)
key
- the key of the geo set.members
- the members.members
. Returns null
if a member is not found.Flux<Value<GeoCoordinates>> geopos(K key, V... members)
members
.key
- the key of the geo set.members
- the members.GeoCoordinates
s representing the x,y position of each element specified in the arguments. For
missing elements null
is returned.Flux<V> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit)
longitude
and latitude
.key
- the key of the geo set.longitude
- the longitude coordinate according to WGS84.latitude
- the latitude coordinate according to WGS84.distance
- radius distance.unit
- distance unit.Flux<GeoWithin<V>> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)
longitude
and latitude
.key
- the key of the geo set.longitude
- the longitude coordinate according to WGS84.latitude
- the latitude coordinate according to WGS84.distance
- radius distance.unit
- distance unit.geoArgs
- args to control the result.GeoWithin
contains only fields which were requested by GeoArgs
.Mono<Long> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit, GeoRadiusStoreArgs<K> geoRadiusStoreArgs)
georadius(Object, double, double, double, GeoArgs.Unit, GeoArgs)
query and store the results in a
sorted set.key
- the key of the geo set.longitude
- the longitude coordinate according to WGS84.latitude
- the latitude coordinate according to WGS84.distance
- radius distance.unit
- distance unit.geoRadiusStoreArgs
- args to store either the resulting elements with their distance or the resulting elements with
their locations a sorted set.Flux<V> georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit)
member
. The member itself is always contained in the
results.key
- the key of the geo set.member
- reference member.distance
- radius distance.unit
- distance unit.Flux<GeoWithin<V>> georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)
member
. The member itself is always contained in the
results.Mono<Long> georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit, GeoRadiusStoreArgs<K> geoRadiusStoreArgs)
georadiusbymember(Object, Object, double, GeoArgs.Unit, GeoArgs)
query and store the results in a
sorted set.key
- the key of the geo set.member
- reference member.distance
- radius distance.unit
- distance unit.geoRadiusStoreArgs
- args to store either the resulting elements with their distance or the resulting elements with
their locations a sorted set.Flux<V> geosearch(K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate)
reference
the search predicate
. Use
GeoSearch
to create reference and predicate objects.key
- the key of the geo set.reference
- the reference member or longitude/latitude coordinates.predicate
- the bounding box or radius to search in.Flux<GeoWithin<V>> geosearch(K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate, GeoArgs geoArgs)
reference
the search predicate
. Use
GeoSearch
to create reference and predicate objects.key
- the key of the geo set.reference
- the reference member or longitude/latitude coordinates.predicate
- the bounding box or radius to search in.geoArgs
- args to control the result.GeoWithin
contains only fields which were requested by GeoArgs
.Mono<Long> geosearchstore(K destination, K key, GeoSearch.GeoRef<K> reference, GeoSearch.GeoPredicate predicate, GeoArgs geoArgs, boolean storeDist)
geosearch(Object, GeoSearch.GeoRef, GeoSearch.GeoPredicate, GeoArgs)
query and store the results in a
sorted set.destination
- the destination where to store results.key
- the key of the geo set.reference
- the reference member or longitude/latitude coordinates.predicate
- the bounding box or radius to search in.geoArgs
- args to control the result.storeDist
- stores the items in a sorted set populated with their distance from the center of the circle or box, as
a floating-point number, in the same unit specified for that shape.Copyright © 2024 lettuce.io. All rights reserved.