Package org.redisson.api
Interface RGeo<V>
-
- Type Parameters:
V
- type of value
- All Superinterfaces:
Iterable<V>
,RExpirable
,RExpirableAsync
,RGeoAsync<V>
,RObject
,RObjectAsync
,RScoredSortedSet<V>
,RScoredSortedSetAsync<V>
,RSortable<Set<V>>
,RSortableAsync<Set<V>>
- All Known Implementing Classes:
RedissonGeo
public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V>
Geospatial items holder.- Author:
- Nikita Koksharov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.redisson.api.RScoredSortedSet
RScoredSortedSet.Aggregate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
add(double longitude, double latitude, V member)
Adds geospatial member.long
add(GeoEntry... entries)
Adds geospatial members.Double
dist(V firstMember, V secondMember, GeoUnit geoUnit)
Returns distance between members inGeoUnit
units.Map<V,String>
hash(V... members)
Returns 11 characters Geohash string mapped by defined member.Map<V,GeoPosition>
pos(V... members)
Returns geo-position mapped by defined member.List<V>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit)
Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units.List<V>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units and limited by countList<V>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units withGeoOrder
List<V>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units withGeoOrder
and limited by countList<V>
radius(V member, double radius, GeoUnit geoUnit)
Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units.List<V>
radius(V member, double radius, GeoUnit geoUnit, int count)
Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units and limited by countList<V>
radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units withGeoOrder
List<V>
radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units withGeoOrder
and limited by countlong
radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units.long
radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units and limited by count Store result todestName
.long
radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units withGeoOrder
and limited by count Store result todestName
.long
radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit)
Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units.long
radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units and limited by count Store result todestName
.long
radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units withGeoOrder
Store result todestName
.Map<V,Double>
radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit)
Returns the distance mapped by member, distance between member and the location.Map<V,Double>
radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Returns the distance mapped by member, distance between member and the location.Map<V,Double>
radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the distance mapped by member, distance between member and the location.Map<V,Double>
radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the distance mapped by member, distance between member and the location.Map<V,Double>
radiusWithDistance(V member, double radius, GeoUnit geoUnit)
Returns the distance mapped by member, distance between member and the defined member location.Map<V,Double>
radiusWithDistance(V member, double radius, GeoUnit geoUnit, int count)
Returns the distance mapped by member, distance between member and the defined member location.Map<V,Double>
radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the distance mapped by member, distance between member and the defined member location.Map<V,Double>
radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the distance mapped by member, distance between member and the defined member location.Map<V,GeoPosition>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit)
Returns the geo-position mapped by member.Map<V,GeoPosition>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Returns the geo-position mapped by member.Map<V,GeoPosition>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the geo-position mapped by member.Map<V,GeoPosition>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the geo-position mapped by member.Map<V,GeoPosition>
radiusWithPosition(V member, double radius, GeoUnit geoUnit)
Returns the geo-position mapped by member.Map<V,GeoPosition>
radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count)
Returns the geo-position mapped by member.Map<V,GeoPosition>
radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the geo-position mapped by member.Map<V,GeoPosition>
radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the geo-position mapped by member.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RGeoAsync
addAsync, addAsync, distAsync, hashAsync, posAsync, radiusAsync, radiusAsync, radiusAsync, radiusAsync, radiusAsync, radiusAsync, radiusAsync, radiusAsync, radiusStoreToAsync, radiusStoreToAsync, radiusStoreToAsync, radiusStoreToAsync, radiusStoreToAsync, radiusStoreToAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithPositionAsync, radiusWithPositionAsync, radiusWithPositionAsync, radiusWithPositionAsync, radiusWithPositionAsync, radiusWithPositionAsync, radiusWithPositionAsync, radiusWithPositionAsync
-
Methods inherited from interface org.redisson.api.RObject
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
Methods inherited from interface org.redisson.api.RObjectAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
Methods inherited from interface org.redisson.api.RScoredSortedSet
add, addAll, addAndGetRank, addAndGetRevRank, addScore, addScoreAndGetRank, addScoreAndGetRevRank, clear, contains, containsAll, count, entryRange, entryRange, entryRange, entryRangeReversed, entryRangeReversed, entryRangeReversed, first, firstScore, getScore, intersection, intersection, intersection, intersection, isEmpty, iterator, iterator, iterator, last, lastScore, mapReduce, pollFirst, pollFirst, pollFirst, pollFirstFromAny, pollLast, pollLast, pollLast, pollLastFromAny, rank, readAll, remove, removeAll, removeRangeByRank, removeRangeByScore, retainAll, revRank, size, takeFirst, takeLast, toArray, toArray, tryAdd, union, union, union, union, valueRange, valueRange, valueRange, valueRangeReversed, valueRangeReversed, valueRangeReversed
-
Methods inherited from interface org.redisson.api.RScoredSortedSetAsync
addAllAsync, addAndGetRankAsync, addAndGetRevRankAsync, addAsync, addScoreAndGetRankAsync, addScoreAndGetRevRankAsync, addScoreAsync, containsAllAsync, containsAsync, countAsync, entryRangeAsync, entryRangeAsync, entryRangeAsync, entryRangeReversedAsync, entryRangeReversedAsync, entryRangeReversedAsync, firstAsync, firstScoreAsync, getScoreAsync, intersectionAsync, intersectionAsync, intersectionAsync, intersectionAsync, lastAsync, lastScoreAsync, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstFromAnyAsync, pollLastAsync, pollLastAsync, pollLastAsync, pollLastFromAnyAsync, rankAsync, readAllAsync, removeAllAsync, removeAsync, removeRangeByRankAsync, removeRangeByScoreAsync, retainAllAsync, revRankAsync, sizeAsync, takeFirstAsync, takeLastAsync, tryAddAsync, unionAsync, unionAsync, unionAsync, unionAsync, valueRangeAsync, valueRangeAsync, valueRangeAsync, valueRangeReversedAsync, valueRangeReversedAsync, valueRangeReversedAsync
-
Methods inherited from interface org.redisson.api.RSortable
readSort, readSort, readSort, readSort, readSort, readSort, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo
-
Methods inherited from interface org.redisson.api.RSortableAsync
readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync
-
-
-
-
Method Detail
-
add
long add(double longitude, double latitude, V member)
Adds geospatial member.- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectmember
- - object itself- Returns:
- number of elements added to the sorted set, not including elements already existing for which the score was updated
-
add
long add(GeoEntry... entries)
Adds geospatial members.- Parameters:
entries
- - objects- Returns:
- number of elements added to the sorted set, not including elements already existing for which the score was updated
-
dist
Double dist(V firstMember, V secondMember, GeoUnit geoUnit)
Returns distance between members inGeoUnit
units.- Parameters:
firstMember
- - first objectsecondMember
- - second objectgeoUnit
- - geo unit- Returns:
- distance
-
hash
Map<V,String> hash(V... members)
Returns 11 characters Geohash string mapped by defined member.- Parameters:
members
- - objects- Returns:
- hash mapped by object
-
pos
Map<V,GeoPosition> pos(V... members)
Returns geo-position mapped by defined member.- Parameters:
members
- - objects- Returns:
- geo position mapped by object
-
radius
List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit)
Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units.- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- list of objects
-
radius
List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units and limited by count- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- list of objects
-
radius
List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units withGeoOrder
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of result- Returns:
- list of objects
-
radius
List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units withGeoOrder
and limited by count- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of resultcount
- - result limit- Returns:
- list of objects
-
radiusWithDistance
Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit)
Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units.- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- distance mapped by object
-
radiusWithDistance
Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units and limited by count.- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- distance mapped by object
-
radiusWithDistance
Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units withGeoOrder
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of result- Returns:
- distance mapped by object
-
radiusWithDistance
Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the distance mapped by member, distance between member and the location. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units withGeoOrder
and limited by count- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of resultcount
- - result limit- Returns:
- distance mapped by object
-
radiusWithPosition
Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit)
Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units.- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- geo position mapped by object
-
radiusWithPosition
Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units and limited by count- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- geo position mapped by object
-
radiusWithPosition
Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units withGeoOrder
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo order- Returns:
- geo position mapped by object
-
radiusWithPosition
Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units withGeoOrder
and limited by count- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limit- Returns:
- geo position mapped by object
-
radius
List<V> radius(V member, double radius, GeoUnit geoUnit)
Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units.- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- list of objects
-
radius
List<V> radius(V member, double radius, GeoUnit geoUnit, int count)
Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units and limited by count- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- list of objects
-
radius
List<V> radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units withGeoOrder
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo order- Returns:
- list of objects
-
radius
List<V> radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units withGeoOrder
and limited by count- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limit- Returns:
- list of objects
-
radiusWithDistance
Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit)
Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units.- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- distance mapped by object
-
radiusWithDistance
Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, int count)
Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units and limited by count- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- distance mapped by object
-
radiusWithDistance
Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units withGeoOrder
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo order- Returns:
- distance mapped by object
-
radiusWithDistance
Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the distance mapped by member, distance between member and the defined member location. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units withGeoOrder
and limited by count- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limit- Returns:
- distance mapped by object
-
radiusWithPosition
Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit)
Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units.- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- geo position mapped by object
-
radiusWithPosition
Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count)
Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units and limited by count- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- geo position mapped by object
-
radiusWithPosition
Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units withGeoOrder
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo order- Returns:
- geo position mapped by object
-
radiusWithPosition
Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the geo-position mapped by member. Members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units withGeoOrder
and limited by count- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limit- Returns:
- geo position mapped by object
-
radiusStoreTo
long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units. Store result todestName
.- Parameters:
destName
- - Geo object destinationlongitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- length of result
-
radiusStoreTo
long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units and limited by count Store result todestName
.- Parameters:
destName
- - Geo object destinationlongitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- length of result
-
radiusStoreTo
long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Finds the members of a sorted set, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius) inGeoUnit
units withGeoOrder
and limited by count Store result todestName
.- Parameters:
destName
- - Geo object destinationlongitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of resultcount
- - result limit- Returns:
- length of result
-
radiusStoreTo
long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit)
Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units. Store result todestName
.- Parameters:
destName
- - Geo object destinationmember
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- length of result
-
radiusStoreTo
long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units and limited by count Store result todestName
.- Parameters:
destName
- - Geo object destinationmember
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- length of result
-
radiusStoreTo
long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Finds the members of a sorted set, which are within the borders of the area specified with the defined member location and the maximum distance from the defined member location (the radius) inGeoUnit
units withGeoOrder
Store result todestName
.- Parameters:
destName
- - Geo object destinationmember
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limit- Returns:
- length of result
-
-