public interface RedisGeoAsyncCommands<K,V>
Modifier and Type | Method and Description |
---|---|
RedisFuture<Long> |
geoadd(K key,
double longitude,
double latitude,
V member)
Single geo add.
|
RedisFuture<Long> |
geoadd(K key,
Object... lngLatMember)
Multi geo add.
|
RedisFuture<Double> |
geodist(K key,
V from,
V to,
GeoArgs.Unit unit)
Retrieve distance between points
from and to . |
RedisFuture<List<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.
|
RedisFuture<List<GeoCoordinates>> |
geopos(K key,
V... members)
Get geo coordinates for the
members . |
RedisFuture<Set<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 . |
RedisFuture<List<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 . |
RedisFuture<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. |
RedisFuture<Set<V>> |
georadiusbymember(K key,
V member,
double distance,
GeoArgs.Unit unit)
Retrieve members selected by distance with the center of
member . |
RedisFuture<List<GeoWithin<V>>> |
georadiusbymember(K key,
V member,
double distance,
GeoArgs.Unit unit,
GeoArgs geoArgs)
Retrieve members selected by distance with the center of
member . |
RedisFuture<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. |
RedisFuture<Long> geoadd(K key, double longitude, double latitude, V member)
key
- the key of the geo setlongitude
- the longitude coordinate according to WGS84latitude
- the latitude coordinate according to WGS84member
- the member to addRedisFuture<Long> geoadd(K key, Object... lngLatMember)
key
- the key of the geo setlngLatMember
- triplets of double longitude, double latitude and V memberRedisFuture<List<Value<String>>> geohash(K key, V... members)
key
- the key of the geo setmembers
- the membersmembers
. Returns null if a member is not found.RedisFuture<Set<V>> georadius(K key, double longitude, double latitude, double distance, GeoArgs.Unit unit)
longitude
and latitude
.key
- the key of the geo setlongitude
- the longitude coordinate according to WGS84latitude
- the latitude coordinate according to WGS84distance
- radius distanceunit
- distance unitRedisFuture<List<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 setlongitude
- the longitude coordinate according to WGS84latitude
- the latitude coordinate according to WGS84distance
- radius distanceunit
- distance unitgeoArgs
- args to control the resultGeoWithin
contains only fields which were requested by GeoArgs
RedisFuture<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 setlongitude
- the longitude coordinate according to WGS84latitude
- the latitude coordinate according to WGS84distance
- radius distanceunit
- distance unitgeoRadiusStoreArgs
- args to store either the resulting elements with their distance or the resulting elements with
their locations a sorted set.RedisFuture<Set<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 setmember
- reference memberdistance
- radius distanceunit
- distance unitRedisFuture<List<GeoWithin<V>>> georadiusbymember(K key, V member, double distance, GeoArgs.Unit unit, GeoArgs geoArgs)
member
. The member itself is always contained in the
results.RedisFuture<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 setmember
- reference memberdistance
- radius distanceunit
- distance unitgeoRadiusStoreArgs
- args to store either the resulting elements with their distance or the resulting elements with
their locations a sorted set.RedisFuture<List<GeoCoordinates>> geopos(K key, V... members)
members
.key
- the key of the geo setmembers
- the membersGeoCoordinates
s representing the x,y position of each element specified in the arguments. For
missing elements null is returned.RedisFuture<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 setfrom
- from memberto
- to memberunit
- distance unitfrom
and to
. If one or more elements are missing null is
returned.Copyright © 2018 lettuce.io. All rights reserved.