public class DefaultBoundGeoOperationsX<V> extends Object implements IBoundOperationsX, IKeyNamingPolicy
| Constructor and Description |
|---|
DefaultBoundGeoOperationsX(String key,
org.springframework.data.redis.core.RedisOperations<String,V> operations,
IKeyNamingPolicy keyNamingPolicy)
Constructs a new
DefaultBoundGeoOperations. |
| Modifier and Type | Method and Description |
|---|---|
Long |
add(Iterable<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> arg0) |
Long |
add(Map<M,org.springframework.data.geo.Point> arg0) |
Long |
add(org.springframework.data.geo.Point arg0,
M arg1) |
Long |
add(org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M> arg0) |
org.springframework.data.geo.Distance |
distance(M arg0,
M arg1) |
org.springframework.data.geo.Distance |
distance(M arg0,
M arg1,
org.springframework.data.geo.Metric arg2) |
Boolean |
expire(long arg0,
TimeUnit arg1) |
Boolean |
expireAt(Date arg0) |
Long |
getExpire() |
K |
getKey() |
String |
getKeyName(String key)
Get naming key
|
String |
getOriginKey()
Get origin Key
|
org.springframework.data.redis.connection.DataType |
getType() |
List<String> |
hash(M... arg0) |
Boolean |
persist() |
List<org.springframework.data.geo.Point> |
position(M... arg0) |
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> |
radius(org.springframework.data.geo.Circle arg0) |
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> |
radius(org.springframework.data.geo.Circle arg0,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs arg1) |
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> |
radius(M arg0,
org.springframework.data.geo.Distance arg1) |
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> |
radius(M arg0,
org.springframework.data.geo.Distance arg1,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs arg2) |
org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<V>> |
radius(String key,
V member,
double radius) |
Long |
remove(M... arg0) |
void |
rename(String newKey)
Renames the key.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyNames, getKeyNames, mapKeyNamingpublic DefaultBoundGeoOperationsX(String key, org.springframework.data.redis.core.RedisOperations<String,V> operations, IKeyNamingPolicy keyNamingPolicy)
DefaultBoundGeoOperations.key - must not be null.operations - must not be null.keyNamingPolicy - public String getOriginKey()
getOriginKey in interface IBoundOperationsXpublic void rename(String newKey)
rename in interface org.springframework.data.redis.core.BoundKeyOperations<String>newKey - new key. Must not be null.public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<V>> radius(String key, V member, double radius)
public String getKeyName(String key)
IKeyNamingPolicygetKeyName in interface IKeyNamingPolicypublic Long add(org.springframework.data.geo.Point arg0, M arg1)
add in interface org.springframework.data.redis.core.BoundGeoOperations<K,M>public Long add(org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M> arg0)
add in interface org.springframework.data.redis.core.BoundGeoOperations<K,M>public Long add(Map<M,org.springframework.data.geo.Point> arg0)
add in interface org.springframework.data.redis.core.BoundGeoOperations<K,M>public Long add(Iterable<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> arg0)
add in interface org.springframework.data.redis.core.BoundGeoOperations<K,M>public org.springframework.data.geo.Distance distance(M arg0,
M arg1)
distance in interface org.springframework.data.redis.core.BoundGeoOperations<K,M>public org.springframework.data.geo.Distance distance(M arg0,
M arg1,
org.springframework.data.geo.Metric arg2)
distance in interface org.springframework.data.redis.core.BoundGeoOperations<K,M>public List<String> hash(M... arg0)
hash in interface org.springframework.data.redis.core.BoundGeoOperations<K,M>public List<org.springframework.data.geo.Point> position(M... arg0)
position in interface org.springframework.data.redis.core.BoundGeoOperations<K,M>public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> radius(org.springframework.data.geo.Circle arg0)
radius in interface org.springframework.data.redis.core.BoundGeoOperations<K,M>public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> radius(org.springframework.data.geo.Circle arg0,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs arg1)
radius in interface org.springframework.data.redis.core.BoundGeoOperations<K,M>public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> radius(M arg0,
org.springframework.data.geo.Distance arg1)
radius in interface org.springframework.data.redis.core.BoundGeoOperations<K,M>public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<M>> radius(M arg0,
org.springframework.data.geo.Distance arg1,
org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs arg2)
radius in interface org.springframework.data.redis.core.BoundGeoOperations<K,M>public Long remove(M... arg0)
remove in interface org.springframework.data.redis.core.BoundGeoOperations<K,M>public org.springframework.data.redis.connection.DataType getType()
getType in interface org.springframework.data.redis.core.BoundKeyOperations<K>public K getKey()
getKey in interface org.springframework.data.redis.core.BoundKeyOperations<K>public Boolean expire(long arg0, TimeUnit arg1)
expire in interface org.springframework.data.redis.core.BoundKeyOperations<K>public Boolean expireAt(Date arg0)
expireAt in interface org.springframework.data.redis.core.BoundKeyOperations<K>public Long getExpire()
getExpire in interface org.springframework.data.redis.core.BoundKeyOperations<K>public Boolean persist()
persist in interface org.springframework.data.redis.core.BoundKeyOperations<K>Copyright © 2020. All rights reserved.