public interface GeoOperations<K,M>
| Modifier and Type | Method and Description |
|---|---|
Long |
add(K key,
Iterable<RedisGeoCommands.GeoLocation<M>> locations)
Add
RedisGeoCommands.GeoLocations to key |
Long |
add(K key,
Map<M,Point> memberCoordinateMap)
|
Long |
add(K key,
Point point,
M member)
Add
Point with given member name to key. |
Long |
add(K key,
RedisGeoCommands.GeoLocation<M> location)
Add
RedisGeoCommands.GeoLocation to key. |
Distance |
distance(K key,
M member1,
M member2)
Get the
Distance between member1 and member2. |
Distance |
distance(K key,
M member1,
M member2,
Metric metric)
|
default Long |
geoAdd(K key,
Iterable<RedisGeoCommands.GeoLocation<M>> locations)
Deprecated.
since 2.0, use
add(Object, Iterable). |
default Long |
geoAdd(K key,
Map<M,Point> memberCoordinateMap)
Deprecated.
since 2.0, use
add(Object, Map). |
default Long |
geoAdd(K key,
Point point,
M member)
Deprecated.
since 2.0, use
add(Object, Point, Object). |
default Long |
geoAdd(K key,
RedisGeoCommands.GeoLocation<M> location)
Deprecated.
since 2.0, use
#add(Object, GeoLocation). |
default Distance |
geoDist(K key,
M member1,
M member2)
Deprecated.
since 2.0, use
distance(Object, Object, Object). |
default Distance |
geoDist(K key,
M member1,
M member2,
Metric metric)
Deprecated.
since 2.0, use
distance(Object, Object, Object, Metric). |
default List<String> |
geoHash(K key,
M... members)
Deprecated.
since 2.0, use
hash(Object, Object[]). |
default List<Point> |
geoPos(K key,
M... members)
Deprecated.
since 2.0, use
position(Object, Object[]). |
default GeoResults<RedisGeoCommands.GeoLocation<M>> |
geoRadius(K key,
Circle within)
Deprecated.
since 2.0, use
radius(Object, Circle). |
default GeoResults<RedisGeoCommands.GeoLocation<M>> |
geoRadius(K key,
Circle within,
RedisGeoCommands.GeoRadiusCommandArgs args)
Deprecated.
since 2.0, use
#radius(Object, Circle, GeoRadiusCommandArgs). |
default GeoResults<RedisGeoCommands.GeoLocation<M>> |
geoRadiusByMember(K key,
M member,
Distance distance)
Deprecated.
since 2.0, use
radius(Object, Object, Distance). |
default GeoResults<RedisGeoCommands.GeoLocation<M>> |
geoRadiusByMember(K key,
M member,
Distance distance,
RedisGeoCommands.GeoRadiusCommandArgs args)
Deprecated.
since 2.0, use
#radius(Object, Object, Distance, GeoRadiusCommandArgs). |
default GeoResults<RedisGeoCommands.GeoLocation<M>> |
geoRadiusByMember(K key,
M member,
double radius)
Deprecated.
since 2.0, use
radius(Object, Object, double). |
default Long |
geoRemove(K key,
M... members)
Deprecated.
since 2.0, use
remove(Object, Object[]). |
List<String> |
hash(K key,
M... members)
Get Geohash representation of the position for one or more members.
|
List<Point> |
position(K key,
M... members)
Get the
Point representation of positions for one or more members. |
GeoResults<RedisGeoCommands.GeoLocation<M>> |
radius(K key,
Circle within)
Get the members within the boundaries of a given
Circle. |
GeoResults<RedisGeoCommands.GeoLocation<M>> |
radius(K key,
Circle within,
RedisGeoCommands.GeoRadiusCommandArgs args)
Get the members within the boundaries of a given
Circle applying RedisGeoCommands.GeoRadiusCommandArgs. |
GeoResults<RedisGeoCommands.GeoLocation<M>> |
radius(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>> |
radius(K key,
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. |
GeoResults<RedisGeoCommands.GeoLocation<M>> |
radius(K key,
M member,
double radius)
Get the members within the circle defined by the members coordinates and given
radius.
|
Long |
remove(K key,
M... members)
Remove the members.
|
@Nullable Long add(K key, 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.@Deprecated @Nullable default Long geoAdd(K key, Point point, M member)
add(Object, Point, Object).Point with given member name to key.key - must not be null.point - must not be null.member - must not be null.@Nullable Long add(K key, RedisGeoCommands.GeoLocation<M> location)
RedisGeoCommands.GeoLocation to key.key - must not be null.location - must not be null.@Deprecated @Nullable default Long geoAdd(K key, RedisGeoCommands.GeoLocation<M> location)
#add(Object, GeoLocation).RedisGeoCommands.GeoLocation to key.key - must not be null.location - must not be null.@Nullable Long add(K key, Map<M,Point> memberCoordinateMap)
key - must not be null.memberCoordinateMap - must not be null.@Deprecated @Nullable default Long geoAdd(K key, Map<M,Point> memberCoordinateMap)
add(Object, Map).key - must not be null.memberCoordinateMap - must not be null.@Nullable Long add(K key, Iterable<RedisGeoCommands.GeoLocation<M>> locations)
RedisGeoCommands.GeoLocations to keykey - must not be null.locations - must not be null.@Deprecated @Nullable default Long geoAdd(K key, Iterable<RedisGeoCommands.GeoLocation<M>> locations)
add(Object, Iterable).RedisGeoCommands.GeoLocations to keykey - must not be null.locations - must not be null.@Nullable Distance distance(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.@Deprecated @Nullable default Distance geoDist(K key, M member1, M member2)
distance(Object, Object, Object).Distance between member1 and member2.key - must not be null.member1 - must not be null.member2 - must not be null.@Nullable Distance distance(K key, M member1, M member2, Metric metric)
key - must not be null.member1 - must not be null.member2 - must not be null.metric - must not be null.@Deprecated @Nullable default Distance geoDist(K key, M member1, M member2, Metric metric)
distance(Object, Object, Object, Metric).key - must not be null.member1 - must not be null.member2 - must not be null.metric - must not be null.@Nullable List<String> hash(K key, M... members)
key - must not be null.members - must not be null.@Deprecated @Nullable default List<String> geoHash(K key, M... members)
hash(Object, Object[]).key - must not be null.members - must not be null.@Nullable List<Point> position(K key, M... members)
Point representation of positions for one or more members.key - must not be null.members - must not be null.@Deprecated @Nullable default List<Point> geoPos(K key, M... members)
position(Object, Object[]).Point representation of positions for one or more members.key - must not be null.members - must not be null.@Nullable GeoResults<RedisGeoCommands.GeoLocation<M>> radius(K key, Circle within)
Circle.key - must not be null.within - must not be null.@Deprecated @Nullable default GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadius(K key, Circle within)
radius(Object, Circle).Circle.key - must not be null.within - must not be null.@Nullable GeoResults<RedisGeoCommands.GeoLocation<M>> radius(K key, Circle within, RedisGeoCommands.GeoRadiusCommandArgs args)
Circle applying RedisGeoCommands.GeoRadiusCommandArgs.key - must not be null.within - must not be null.args - must not be null.@Deprecated @Nullable default GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadius(K key, Circle within, RedisGeoCommands.GeoRadiusCommandArgs args)
#radius(Object, Circle, GeoRadiusCommandArgs).Circle applying RedisGeoCommands.GeoRadiusCommandArgs.key - must not be null.within - must not be null.args - must not be null.@Nullable GeoResults<RedisGeoCommands.GeoLocation<M>> radius(K key, M member, double radius)
key - must not be null.member - must not be null.radius - @Deprecated @Nullable default GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadiusByMember(K key, M member, double radius)
radius(Object, Object, double).key - must not be null.member - must not be null.radius - @Nullable GeoResults<RedisGeoCommands.GeoLocation<M>> radius(K key, M member, Distance distance)
Metric.key - must not be null.member - must not be null.distance - must not be null.@Deprecated @Nullable default GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadiusByMember(K key, M member, Distance distance)
radius(Object, Object, Distance).Metric.key - must not be null.member - must not be null.distance - must not be null.@Nullable GeoResults<RedisGeoCommands.GeoLocation<M>> radius(K key, M member, Distance distance, 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.@Deprecated @Nullable default GeoResults<RedisGeoCommands.GeoLocation<M>> geoRadiusByMember(K key, M member, Distance distance, RedisGeoCommands.GeoRadiusCommandArgs args)
#radius(Object, Object, Distance, GeoRadiusCommandArgs).Metric and RedisGeoCommands.GeoRadiusCommandArgs.key - must not be null.member - must not be null.distance - must not be null.args - must not be null.@Nullable Long remove(K key, M... members)
key - must not be null.members - must not be null.@Deprecated @Nullable default Long geoRemove(K key, M... members)
remove(Object, Object[]).key - must not be null.members - must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.