public final class GeoHandler extends Object implements RedisHandler
Modifier and Type | Method and Description |
---|---|
Long |
add(String key,
Map<String,org.springframework.data.geo.Point> params)
添加字符串
|
Long |
add(String key,
org.springframework.data.geo.Point point,
String value)
添加字符串
|
Long |
addAsObj(String key,
Map<Object,org.springframework.data.geo.Point> params)
添加对象
|
Long |
addAsObj(String key,
org.springframework.data.geo.Point point,
Object value)
添加对象
|
org.springframework.data.geo.Distance |
distance(String key,
String member1,
String member2)
字符串距离
|
org.springframework.data.geo.Distance |
distance(String key,
String member1,
String member2,
org.springframework.data.geo.Metric metric)
字符串距离
|
org.springframework.data.geo.Distance |
distanceAsObj(String key,
Object member1,
Object member2)
对象距离
|
org.springframework.data.geo.Distance |
distanceAsObj(String key,
Object member1,
Object member2,
org.springframework.data.geo.Metric metric)
对象距离
|
org.springframework.data.redis.core.RedisTemplate<String,Object> |
getRedisTemplate()
获取spring redis模板
|
org.springframework.data.redis.core.StringRedisTemplate |
getStringRedisTemplate()
获取spring string redis模板
|
List<String> |
hash(String key,
String... values)
字符串地理位置哈希码
|
List<String> |
hashAsObj(String key,
Object... values)
对象地理位置哈希码
|
List<org.springframework.data.geo.Point> |
position(String key,
String... values)
定位字符串
|
List<org.springframework.data.geo.Point> |
positionAsObj(String key,
Object... values)
定位对象
|
List<String> |
radius(String key,
org.springframework.data.geo.Circle within)
中心范围内的字符串
|
List<String> |
radius(String key,
org.springframework.data.geo.Circle within,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
中心范围内的字符串
|
List<Object> |
radiusAsObj(String key,
org.springframework.data.geo.Circle within)
中心范围内的对象
|
List<Object> |
radiusAsObj(String key,
org.springframework.data.geo.Circle within,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
中心范围内的对象
|
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<Object>> |
radiusAsObjWithResult(String key,
org.springframework.data.geo.Circle within)
中心范围内的对象(带详细信息)
|
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<Object>> |
radiusAsObjWithResult(String key,
org.springframework.data.geo.Circle within,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
中心范围内的对象(带详细信息)
|
List<String> |
radiusByMember(String key,
String value,
org.springframework.data.geo.Distance distance)
中心范围内的字符串
|
List<String> |
radiusByMember(String key,
String value,
org.springframework.data.geo.Distance distance,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
中心范围内的字符串
|
List<String> |
radiusByMember(String key,
String value,
Double radius)
中心范围内的字符串
|
List<Object> |
radiusByMemberAsObj(String key,
Object value,
org.springframework.data.geo.Distance distance)
中心范围内的对象
|
List<Object> |
radiusByMemberAsObj(String key,
Object value,
org.springframework.data.geo.Distance distance,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
中心范围内的对象
|
List<Object> |
radiusByMemberAsObj(String key,
Object value,
Double radius)
中心范围内的对象
|
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<Object>> |
radiusByMemberAsObjWithResult(String key,
Object value,
org.springframework.data.geo.Distance distance,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
中心范围内的对象(带详细信息)
|
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<Object>> |
radiusByMemberAsObjWithResult(String key,
Object value,
Double radius)
中心范围内的对象(带详细信息)
|
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<String>> |
radiusByMemberWithResult(String key,
String value,
org.springframework.data.geo.Distance distance)
中心范围内的字符串(带详细信息)
|
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<String>> |
radiusByMemberWithResult(String key,
String value,
org.springframework.data.geo.Distance distance,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
中心范围内的字符串(带详细信息)
|
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<String>> |
radiusByMemberWithResult(String key,
String value,
Double radius)
中心范围内的字符串(带详细信息)
|
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<Object>> |
radiusByMemberWithResultAsObj(String key,
Object value,
org.springframework.data.geo.Distance distance)
中心范围内的对象(带详细信息)
|
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<String>> |
radiusWithResult(String key,
org.springframework.data.geo.Circle within)
中心范围内的字符串(带详细信息)
|
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<String>> |
radiusWithResult(String key,
org.springframework.data.geo.Circle within,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
中心范围内的字符串(带详细信息)
|
Long |
remove(String key,
String... members)
移除字符串
|
Long |
removeAsObj(String key,
Object... members)
移除对象
|
public Long addAsObj(String key, org.springframework.data.geo.Point point, Object value)
key
- 键point
- 坐标value
- 对象public Long add(String key, org.springframework.data.geo.Point point, String value)
key
- 键point
- 坐标value
- 字符串public Long addAsObj(String key, Map<Object,org.springframework.data.geo.Point> params)
key
- 键params
- 参数,键为待添加对象,值为待添加坐标public Long add(String key, Map<String,org.springframework.data.geo.Point> params)
key
- 键params
- 参数,键为待添加字符串,值为待添加坐标public List<org.springframework.data.geo.Point> positionAsObj(String key, Object... values)
key
- 键values
- 对象public List<org.springframework.data.geo.Point> position(String key, String... values)
key
- 键values
- 字符串public List<String> hashAsObj(String key, Object... values)
key
- 键values
- 对象public List<String> hash(String key, String... values)
key
- 键values
- 对象public org.springframework.data.geo.Distance distanceAsObj(String key, Object member1, Object member2)
key
- 键member1
- 对象1member2
- 对象2public org.springframework.data.geo.Distance distance(String key, String member1, String member2)
key
- 键member1
- 字符串1member2
- 字符串2public org.springframework.data.geo.Distance distanceAsObj(String key, Object member1, Object member2, org.springframework.data.geo.Metric metric)
key
- 键member1
- 对象1member2
- 对象2metric
- 单位public org.springframework.data.geo.Distance distance(String key, String member1, String member2, org.springframework.data.geo.Metric metric)
key
- 键member1
- 字符串1member2
- 字符串2metric
- 单位public List<Object> radiusByMemberAsObj(String key, Object value, org.springframework.data.geo.Distance distance)
key
- 键value
- 对象distance
- 距离public List<String> radiusByMember(String key, String value, org.springframework.data.geo.Distance distance)
key
- 键value
- 字符串distance
- 距离public List<Object> radiusByMemberAsObj(String key, Object value, Double radius)
key
- 键value
- 对象radius
- 半径public List<String> radiusByMember(String key, String value, Double radius)
key
- 键value
- 字符串radius
- 半径public List<Object> radiusByMemberAsObj(String key, Object value, org.springframework.data.geo.Distance distance, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
key
- 键value
- 对象distance
- 距离args
- 命令参数public List<String> radiusByMember(String key, String value, org.springframework.data.geo.Distance distance, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
key
- 键value
- 字符串distance
- 距离args
- 命令参数public List<Object> radiusAsObj(String key, org.springframework.data.geo.Circle within)
key
- 键within
- 圆public List<String> radius(String key, org.springframework.data.geo.Circle within)
key
- 键within
- 圆public List<Object> radiusAsObj(String key, org.springframework.data.geo.Circle within, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
key
- 键within
- 圆args
- 命令参数public List<String> radius(String key, org.springframework.data.geo.Circle within, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
key
- 键within
- 圆args
- 命令参数public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<Object>> radiusByMemberWithResultAsObj(String key, Object value, org.springframework.data.geo.Distance distance)
key
- 键value
- 对象distance
- 距离public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<String>> radiusByMemberWithResult(String key, String value, org.springframework.data.geo.Distance distance)
key
- 键value
- 字符串distance
- 距离public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<Object>> radiusByMemberAsObjWithResult(String key, Object value, Double radius)
key
- 键value
- 对象radius
- 半径public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<String>> radiusByMemberWithResult(String key, String value, Double radius)
key
- 键value
- 字符串radius
- 半径public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<Object>> radiusByMemberAsObjWithResult(String key, Object value, org.springframework.data.geo.Distance distance, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
key
- 键value
- 对象distance
- 距离args
- 命令参数public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<String>> radiusByMemberWithResult(String key, String value, org.springframework.data.geo.Distance distance, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
key
- 键value
- 字符串distance
- 距离args
- 命令参数public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<Object>> radiusAsObjWithResult(String key, org.springframework.data.geo.Circle within)
key
- 键within
- 圆public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<String>> radiusWithResult(String key, org.springframework.data.geo.Circle within)
key
- 键within
- 圆public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<Object>> radiusAsObjWithResult(String key, org.springframework.data.geo.Circle within, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
key
- 键within
- 圆args
- 命令参数public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<String>> radiusWithResult(String key, org.springframework.data.geo.Circle within, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args)
key
- 键within
- 圆args
- 命令参数public Long removeAsObj(String key, Object... members)
key
- 键members
- 对象public Long remove(String key, String... members)
key
- 键members
- 字符串public org.springframework.data.redis.core.RedisTemplate<String,Object> getRedisTemplate()
public org.springframework.data.redis.core.StringRedisTemplate getStringRedisTemplate()
Copyright © 2019. All rights reserved.