public interface IGeoCommands<K,M>
| Modifier and Type | Method and Description |
|---|---|
Long |
geoAdd(K key,
Iterable<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> locations)
Add
RedisGeoCommands.GeoLocations to key |
Long |
geoAdd(K key,
Map<M,org.springframework.data.geo.Point> memberCoordinateMap)
Add
Map of member / Point pairs to key. |
Long |
geoAdd(K key,
org.springframework.data.geo.Point point,
M member)
Add
Point with given member name to key. |
Long |
geoAdd(K key,
org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M> location)
Add
RedisGeoCommands.GeoLocation to key. |
org.springframework.data.geo.Distance |
geoDist(K key,
M member1,
M member2)
Get the
Distance between member1 and member2. |
org.springframework.data.geo.Distance |
geoDist(K key,
M member1,
M member2,
org.springframework.data.geo.Metric metric)
Get the
Distance between member1 and member2 in the given Metric. |
List<String> |
geoHash(K key,
M... members)
Get Geohash representation of the position for one or more members.
|
List<org.springframework.data.geo.Point> |
geoPos(K key,
M... members)
Get the
Point representation of positions for one or more members. |
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> |
geoRadius(K key,
org.springframework.data.geo.Circle within)
Get the members within the boundaries of a given
Circle. |
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> |
geoRadius(K key,
org.springframework.data.geo.Circle within,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
Get the members within the boundaries of a given
Circle applying RedisGeoCommands.GeoRadiusCommandArgs. |
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> |
geoRadiusByMember(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. |
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> |
geoRadiusByMember(K key,
M member,
org.springframework.data.geo.Distance distance,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
Get the members within the circle defined by the members coordinates and given
radius applying
Metric and RedisGeoCommands.GeoRadiusCommandArgs. |
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> |
geoRadiusByMember(K key,
M member,
double radius)
Get the members within the circle defined by the members coordinates and given
radius.
|
Long |
geoRemove(K key,
M... members)
Remove the members.
|
@Nullable Long geoAdd(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.@Nullable Long geoAdd(K key, org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M> location)
RedisGeoCommands.GeoLocation to key.key - must not be null.location - must not be null.@Nullable Long geoAdd(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.@Nullable Long geoAdd(K key, Iterable<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> locations)
RedisGeoCommands.GeoLocations to keykey - must not be null.locations - must not be null.@Nullable org.springframework.data.geo.Distance geoDist(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.@Nullable org.springframework.data.geo.Distance geoDist(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.@Nullable List<String> geoHash(K key, M... members)
key - must not be null.members - must not be null.@Nullable List<org.springframework.data.geo.Point> geoPos(K key, M... members)
Point representation of positions for one or more members.key - must not be null.members - must not be null.@Nullable org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> geoRadius(K key, org.springframework.data.geo.Circle within)
Circle.key - must not be null.within - must not be null.@Nullable org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> geoRadius(K key, org.springframework.data.geo.Circle within, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
Circle applying RedisGeoCommands.GeoRadiusCommandArgs.key - must not be null.within - must not be null.args - must not be null.@Nullable org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> geoRadiusByMember(K key, M member, double radius)
key - must not be null.member - must not be null.radius - @Nullable org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> geoRadiusByMember(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.@Nullable org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> geoRadiusByMember(K key, M member, org.springframework.data.geo.Distance distance, org.springframework.data.redis.connection.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.Copyright © 2021. All rights reserved.