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