public class DefaultGeoOperations<K,M> extends Object implements GeoOperations<K,M>
GeoOperations.| Modifier and Type | Method and Description |
|---|---|
Long |
geoAdd(K key,
Iterable<RedisGeoCommands.GeoLocation<M>> locations)
Add
RedisGeoCommands.GeoLocations to key |
Long |
geoAdd(K key,
Map<M,Point> memberCoordinateMap)
|
Long |
geoAdd(K key,
Point point,
M member)
Add
Point with given member name to key. |
Long |
geoAdd(K key,
RedisGeoCommands.GeoLocation<M> location)
Add
RedisGeoCommands.GeoLocation to key. |
Distance |
geoDist(K key,
M member1,
M member2)
Get the
Distance between member1 and member2. |
Distance |
geoDist(K key,
M member1,
M member2,
Metric metric)
|
List<String> |
geoHash(K key,
M... members)
Get Geohash representation of the position for one or more members.
|
List<Point> |
geoPos(K key,
M... members)
Get the
Point representation of positions for one or more members. |
GeoResults<RedisGeoCommands.GeoLocation<M>> |
geoRadius(K key,
Circle within)
Get the members within the boundaries of a given
Circle. |
GeoResults<RedisGeoCommands.GeoLocation<M>> |
geoRadius(K key,
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,
Distance distance)
Get the members within the circle defined by the members coordinates and given
radius applying
Metric. |
GeoResults<RedisGeoCommands.GeoLocation<M>> |
geoRadiusByMember(K key,
M member,
Distance distance,
RedisGeoCommands.GeoRadiusCommandArgs param)
Get the members within the circle defined by the members coordinates and given
radius applying
Metric and 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.
|
Long |
geoRemove(K key,
M... members)
Remove the members.
|
RedisOperations<K,V> |
getOperations() |
public Long geoAdd(K key, Point point, M member)
GeoOperationsPoint with given member name to key.geoAdd in interface GeoOperations<K,M>key - must not be null.point - must not be null.member - must not be null.public Long geoAdd(K key, RedisGeoCommands.GeoLocation<M> location)
GeoOperationsRedisGeoCommands.GeoLocation to key.geoAdd in interface GeoOperations<K,M>key - must not be null.location - must not be null.public Long geoAdd(K key, Map<M,Point> memberCoordinateMap)
GeoOperationsgeoAdd in interface GeoOperations<K,M>key - must not be null.memberCoordinateMap - must not be null.public Long geoAdd(K key, Iterable<RedisGeoCommands.GeoLocation<M>> locations)
GeoOperationsRedisGeoCommands.GeoLocations to keygeoAdd in interface GeoOperations<K,M>key - must not be null.locations - must not be null.public Distance geoDist(K key, M member1, M member2)
GeoOperationsDistance between member1 and member2.geoDist in interface GeoOperations<K,M>key - must not be null.member1 - must not be null.member2 - must not be null.public Distance geoDist(K key, M member1, M member2, Metric metric)
GeoOperationsgeoDist in interface GeoOperations<K,M>key - must not be null.member1 - must not be null.member2 - must not be null.metric - must not be null.public List<String> geoHash(K key, M... members)
GeoOperationsgeoHash in interface GeoOperations<K,M>key - must not be null.members - must not be null.public List<Point> geoPos(K key, M... members)
GeoOperationsPoint representation of positions for one or more members.geoPos in interface GeoOperations<K,M>key - must not be null.members - must not be null.public GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadius(K key, Circle within)
GeoOperationsCircle.geoRadius in interface GeoOperations<K,M>key - must not be null.within - must not be null.public GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadius(K key, Circle within, RedisGeoCommands.GeoRadiusCommandArgs args)
GeoOperationsCircle applying RedisGeoCommands.GeoRadiusCommandArgs.geoRadius in interface GeoOperations<K,M>key - must not be null.within - must not be null.args - must not be null.public GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadiusByMember(K key, M member, double radius)
GeoOperationsgeoRadiusByMember in interface GeoOperations<K,M>key - must not be null.member - must not be null.public GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadiusByMember(K key, M member, Distance distance)
GeoOperationsMetric.geoRadiusByMember in interface GeoOperations<K,M>key - must not be null.member - must not be null.distance - must not be null.public GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadiusByMember(K key, M member, Distance distance, RedisGeoCommands.GeoRadiusCommandArgs param)
GeoOperationsMetric and RedisGeoCommands.GeoRadiusCommandArgs.geoRadiusByMember in interface GeoOperations<K,M>key - must not be null.member - must not be null.distance - must not be null.param - must not be null.public Long geoRemove(K key, M... members)
GeoOperationsgeoRemove in interface GeoOperations<K,M>key - must not be null.members - must not be null.public RedisOperations<K,V> getOperations()
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.