public interface RedisGeoCommands
Modifier and Type | Interface and Description |
---|---|
static class |
RedisGeoCommands.DistanceUnit
Metric s supported by Redis. |
static interface |
RedisGeoCommands.GeoCommandArgs
Arguments to be used with
RedisGeoCommands . |
static class |
RedisGeoCommands.GeoLocation<T>
RedisGeoCommands.GeoLocation representing a Point associated with a name. |
static class |
RedisGeoCommands.GeoRadiusCommandArgs
Additional arguments (like count/sort/...) to be used with
RedisGeoCommands . |
static class |
RedisGeoCommands.GeoSearchCommandArgs
Additional arguments (like count/sort/...) to be used with
RedisGeoCommands . |
static class |
RedisGeoCommands.GeoSearchStoreCommandArgs
Additional arguments (like count/sort/...) to be used with
RedisGeoCommands . |
Modifier and Type | Method and Description |
---|---|
Long |
geoAdd(byte[] key,
Iterable<RedisGeoCommands.GeoLocation<byte[]>> locations)
Add
RedisGeoCommands.GeoLocation s to key |
Long |
geoAdd(byte[] key,
Map<byte[],org.springframework.data.geo.Point> memberCoordinateMap)
Add
Map of member / Point pairs to key. |
Long |
geoAdd(byte[] key,
org.springframework.data.geo.Point point,
byte[] member)
Add
Point with given member name to key. |
default Long |
geoAdd(byte[] key,
RedisGeoCommands.GeoLocation<byte[]> location)
Add
RedisGeoCommands.GeoLocation to key. |
org.springframework.data.geo.Distance |
geoDist(byte[] key,
byte[] member1,
byte[] member2)
Get the
Distance between member1 and member2. |
org.springframework.data.geo.Distance |
geoDist(byte[] key,
byte[] member1,
byte[] member2,
org.springframework.data.geo.Metric metric)
Get the
Distance between member1 and member2 in the given Metric . |
List<String> |
geoHash(byte[] key,
byte[]... members)
Get Geohash representation of the position for one or more members.
|
List<org.springframework.data.geo.Point> |
geoPos(byte[] key,
byte[]... members)
Get the
Point representation of positions for one or more members. |
org.springframework.data.geo.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> |
geoRadius(byte[] key,
org.springframework.data.geo.Circle within)
Get the members within the boundaries of a given
Circle . |
org.springframework.data.geo.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> |
geoRadius(byte[] key,
org.springframework.data.geo.Circle within,
RedisGeoCommands.GeoRadiusCommandArgs args)
Get the members within the boundaries of a given
Circle applying RedisGeoCommands.GeoRadiusCommandArgs . |
org.springframework.data.geo.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> |
geoRadiusByMember(byte[] key,
byte[] member,
org.springframework.data.geo.Distance radius)
Get the members within the circle defined by the members coordinates and given
Distance . |
org.springframework.data.geo.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> |
geoRadiusByMember(byte[] key,
byte[] member,
org.springframework.data.geo.Distance radius,
RedisGeoCommands.GeoRadiusCommandArgs args)
Get the members within the circle defined by the members coordinates, given
Distance
and RedisGeoCommands.GeoRadiusCommandArgs . |
default org.springframework.data.geo.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> |
geoRadiusByMember(byte[] key,
byte[] member,
double radius)
Get the members within the circle defined by the members coordinates and given
radius.
|
Long |
geoRemove(byte[] key,
byte[]... members)
Remove the members.
|
org.springframework.data.geo.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> |
geoSearch(byte[] key,
GeoReference<byte[]> reference,
GeoShape predicate,
RedisGeoCommands.GeoSearchCommandArgs args)
Return the members of a geo set which are within the borders of the area specified by a given
shape . |
Long |
geoSearchStore(byte[] destKey,
byte[] key,
GeoReference<byte[]> reference,
GeoShape predicate,
RedisGeoCommands.GeoSearchStoreCommandArgs args)
Query the members of a geo set which are within the borders of the area specified by a given
shape
and store the result at destKey . |
@Nullable Long geoAdd(byte[] key, org.springframework.data.geo.Point point, byte[] member)
Point
with given member name to key.key
- must not be null.point
- must not be null.member
- must not be null.@Nullable default Long geoAdd(byte[] key, RedisGeoCommands.GeoLocation<byte[]> location)
RedisGeoCommands.GeoLocation
to key.key
- must not be null.location
- must not be null.@Nullable Long geoAdd(byte[] key, Map<byte[],org.springframework.data.geo.Point> memberCoordinateMap)
Map
of member / Point
pairs to key.key
- must not be null.memberCoordinateMap
- must not be null.@Nullable Long geoAdd(byte[] key, Iterable<RedisGeoCommands.GeoLocation<byte[]>> locations)
RedisGeoCommands.GeoLocation
s to keykey
- must not be null.locations
- must not be null.@Nullable org.springframework.data.geo.Distance geoDist(byte[] key, byte[] member1, byte[] member2)
Distance
between member1 and member2.key
- must not be null.member1
- must not be null.member2
- must not be null.@Nullable org.springframework.data.geo.Distance geoDist(byte[] key, byte[] member1, byte[] member2, org.springframework.data.geo.Metric metric)
Distance
between member1 and member2 in the given Metric
.key
- must not be null.member1
- must not be null.member2
- must not be null.metric
- must not be null.@Nullable List<String> geoHash(byte[] key, byte[]... members)
key
- must not be null.members
- must not be null.@Nullable List<org.springframework.data.geo.Point> geoPos(byte[] key, byte[]... members)
Point
representation of positions for one or more members.key
- must not be null.members
- must not be null.List
when key of members do not exist. null when used in pipeline / transaction.@Nullable org.springframework.data.geo.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadius(byte[] key, org.springframework.data.geo.Circle within)
Circle
.key
- must not be null.within
- must not be null.@Nullable org.springframework.data.geo.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadius(byte[] key, org.springframework.data.geo.Circle within, RedisGeoCommands.GeoRadiusCommandArgs args)
Circle
applying RedisGeoCommands.GeoRadiusCommandArgs
.key
- must not be null.within
- must not be null.args
- must not be null.@Nullable default org.springframework.data.geo.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, double radius)
key
- must not be null.member
- must not be null.radius
- @Nullable org.springframework.data.geo.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, org.springframework.data.geo.Distance radius)
Distance
.key
- must not be null.member
- must not be null.radius
- must not be null.@Nullable org.springframework.data.geo.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, org.springframework.data.geo.Distance radius, RedisGeoCommands.GeoRadiusCommandArgs args)
Distance
and RedisGeoCommands.GeoRadiusCommandArgs
.key
- must not be null.member
- must not be null.radius
- must not be null.args
- must not be null.@Nullable Long geoRemove(byte[] key, byte[]... members)
key
- must not be null.members
- must not be null.@Nullable org.springframework.data.geo.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoSearch(byte[] key, GeoReference<byte[]> reference, GeoShape predicate, RedisGeoCommands.GeoSearchCommandArgs args)
shape
. The query's center point is provided by GeoReference
.key
- must not be null.reference
- must not be null.predicate
- must not be null.args
- must not be null.@Nullable Long geoSearchStore(byte[] destKey, byte[] key, GeoReference<byte[]> reference, GeoShape predicate, RedisGeoCommands.GeoSearchStoreCommandArgs args)
shape
and store the result at destKey
. The query's center point is provided by GeoReference
.key
- must not be null.reference
- must not be null.predicate
- must not be null.args
- must not be null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.