public interface BoundGeoOperations<K,M> extends BoundKeyOperations<K>
GeoOperations bound to a certain key.| Modifier and Type | Method and Description |
|---|---|
Long |
geoAdd(Iterable<RedisGeoCommands.GeoLocation<M>> locations)
Add
RedisGeoCommands.GeoLocations to key |
Long |
geoAdd(Map<M,Point> memberCoordinateMap)
|
Long |
geoAdd(Point point,
M member)
Add
Point with given member name to key. |
Long |
geoAdd(RedisGeoCommands.GeoLocation<M> location)
Add
RedisGeoCommands.GeoLocation to key. |
Distance |
geoDist(M member1,
M member2)
Get the
Distance between member1 and member2. |
Distance |
geoDist(M member1,
M member2,
Metric metric)
|
List<String> |
geoHash(M... members)
Get Geohash representation of the position for one or more members.
|
List<Point> |
geoPos(M... members)
Get the
Point representation of positions for one or more members. |
GeoResults<RedisGeoCommands.GeoLocation<M>> |
geoRadius(Circle within)
Get the members within the boundaries of a given
Circle. |
GeoResults<RedisGeoCommands.GeoLocation<M>> |
geoRadius(Circle within,
RedisGeoCommands.GeoRadiusCommandArgs args)
Get the members within the boundaries of a given
Circle applying RedisGeoCommands.GeoRadiusCommandArgs. |
GeoResults<RedisGeoCommands.GeoLocation<M>> |
geoRadiusByMember(K key,
M member,
double radius)
Get the members within the circle defined by the members coordinates and given
radius.
|
GeoResults<RedisGeoCommands.GeoLocation<M>> |
geoRadiusByMember(M member,
Distance distance)
Get the members within the circle defined by the members coordinates and given
radius applying
Metric. |
GeoResults<RedisGeoCommands.GeoLocation<M>> |
geoRadiusByMember(M member,
Distance distance,
RedisGeoCommands.GeoRadiusCommandArgs args)
Get the members within the circle defined by the members coordinates and given
radius applying
Metric and RedisGeoCommands.GeoRadiusCommandArgs. |
Long |
geoRemove(M... members)
Remove the members.
|
Long geoAdd(Point point, M member)
Point with given member name to key.point - must not be null.member - must not be null.Long geoAdd(RedisGeoCommands.GeoLocation<M> location)
RedisGeoCommands.GeoLocation to key.location - must not be null.Long geoAdd(Map<M,Point> memberCoordinateMap)
memberCoordinateMap - must not be null.Long geoAdd(Iterable<RedisGeoCommands.GeoLocation<M>> locations)
RedisGeoCommands.GeoLocations to keylocations - must not be null.Distance geoDist(M member1, M member2)
Distance between member1 and member2.member1 - must not be null.member2 - must not be null.Distance geoDist(M member1, M member2, Metric metric)
member1 - must not be null.member2 - must not be null.metric - must not be null.List<String> geoHash(M... members)
members - must not be null.List<Point> geoPos(M... members)
Point representation of positions for one or more members.members - must not be null.GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadius(Circle within)
Circle.within - must not be null.GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadius(Circle within, RedisGeoCommands.GeoRadiusCommandArgs args)
Circle applying RedisGeoCommands.GeoRadiusCommandArgs.within - must not be null.args - must not be null.GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadiusByMember(K key, M member, double radius)
member - must not be null.radius - GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadiusByMember(M member, Distance distance)
Metric.member - must not be null.distance - must not be null.GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadiusByMember(M member, Distance distance, RedisGeoCommands.GeoRadiusCommandArgs args)
Metric and RedisGeoCommands.GeoRadiusCommandArgs.member - must not be null.distance - must not be null.args - must not be null.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.