public interface RedisGeoCommands
Modifier and Type | Interface and Description |
---|---|
static class |
RedisGeoCommands.DistanceUnit
Metric s supported by Redis. |
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 . |
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[],Point> memberCoordinateMap)
|
Long |
geoAdd(byte[] key,
Point point,
byte[] member)
Add
Point with given member name to key. |
Long |
geoAdd(byte[] key,
RedisGeoCommands.GeoLocation<byte[]> location)
Add
RedisGeoCommands.GeoLocation to key. |
Distance |
geoDist(byte[] key,
byte[] member1,
byte[] member2)
Get the
Distance between member1 and member2. |
Distance |
geoDist(byte[] key,
byte[] member1,
byte[] member2,
Metric metric)
|
List<String> |
geoHash(byte[] key,
byte[]... members)
Get Geohash representation of the position for one or more members.
|
List<Point> |
geoPos(byte[] key,
byte[]... members)
Get the
Point representation of positions for one or more members. |
GeoResults<RedisGeoCommands.GeoLocation<byte[]>> |
geoRadius(byte[] key,
Circle within)
Get the members within the boundaries of a given
Circle . |
GeoResults<RedisGeoCommands.GeoLocation<byte[]>> |
geoRadius(byte[] key,
Circle within,
RedisGeoCommands.GeoRadiusCommandArgs args)
Get the members within the boundaries of a given
Circle applying RedisGeoCommands.GeoRadiusCommandArgs . |
GeoResults<RedisGeoCommands.GeoLocation<byte[]>> |
geoRadiusByMember(byte[] key,
byte[] member,
Distance radius)
Get the members within the circle defined by the members coordinates and given
Distance . |
GeoResults<RedisGeoCommands.GeoLocation<byte[]>> |
geoRadiusByMember(byte[] key,
byte[] member,
Distance radius,
RedisGeoCommands.GeoRadiusCommandArgs args)
Get the members within the circle defined by the members coordinates, given
Distance
and RedisGeoCommands.GeoRadiusCommandArgs . |
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.
|
Long geoAdd(byte[] key, 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.Long geoAdd(byte[] key, RedisGeoCommands.GeoLocation<byte[]> location)
RedisGeoCommands.GeoLocation
to key.key
- must not be null.location
- must not be null.Long geoAdd(byte[] key, Map<byte[],Point> memberCoordinateMap)
key
- must not be null.memberCoordinateMap
- must not be null.Long geoAdd(byte[] key, Iterable<RedisGeoCommands.GeoLocation<byte[]>> locations)
RedisGeoCommands.GeoLocation
s to keykey
- must not be null.locations
- must not be null.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.Distance geoDist(byte[] key, byte[] member1, byte[] member2, Metric metric)
key
- must not be null.member1
- must not be null.member2
- must not be null.metric
- must not be null.List<String> geoHash(byte[] key, byte[]... members)
key
- must not be null.members
- must not be null.List<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.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadius(byte[] key, Circle within)
Circle
.key
- must not be null.within
- must not be null.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadius(byte[] 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.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, double radius)
key
- must not be null.member
- must not be null.radius
- GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, Distance radius)
Distance
.key
- must not be null.member
- must not be null.radius
- must not be null.GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, 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.Long geoRemove(byte[] key, byte[]... members)
key
- must not be null.members
- must not be null.Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.