Package org.redisson
Class RedissonGeo<V>
- java.lang.Object
-
- org.redisson.RedissonObject
-
- org.redisson.RedissonScoredSortedSet<V>
-
- org.redisson.RedissonGeo<V>
-
- Type Parameters:
V
- value
- All Implemented Interfaces:
Iterable<V>
,RExpirable
,RExpirableAsync
,RGeo<V>
,RGeoAsync<V>
,RObject
,RObjectAsync
,RScoredSortedSet<V>
,RScoredSortedSetAsync<V>
,RSortable<Set<V>>
,RSortableAsync<Set<V>>
public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V>
Geospatial items holder- Author:
- Nikita Koksharov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.redisson.api.RScoredSortedSet
RScoredSortedSet.Aggregate
-
-
Field Summary
-
Fields inherited from class org.redisson.RedissonObject
codec, commandExecutor
-
-
Constructor Summary
Constructors Constructor Description RedissonGeo(Codec codec, CommandAsyncExecutor connectionManager, String name, RedissonClient redisson)
RedissonGeo(CommandAsyncExecutor connectionManager, String name, RedissonClient redisson)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
add(double longitude, double latitude, V member)
Adds geospatial member.long
add(GeoEntry... entries)
Adds geospatial members.RFuture<Long>
addAsync(double longitude, double latitude, V member)
Adds geospatial member.RFuture<Long>
addAsync(GeoEntry... entries)
Adds geospatial members.boolean
clearExpire()
Clear an expire timeout or expire date for object.RFuture<Boolean>
clearExpireAsync()
Clear an expire timeout or expire date for object in async mode.Double
dist(V firstMember, V secondMember, GeoUnit geoUnit)
Returns distance between members inGeoUnit
units.RFuture<Double>
distAsync(V firstMember, V secondMember, GeoUnit geoUnit)
Returns distance between members inGeoUnit
units.boolean
expire(long timeToLive, TimeUnit timeUnit)
Set a timeout for object.RFuture<Boolean>
expireAsync(long timeToLive, TimeUnit timeUnit)
Set a timeout for object in async mode.boolean
expireAt(long timestamp)
Set an expire date for object.boolean
expireAt(Date timestamp)
Set an expire date for object.RFuture<Boolean>
expireAtAsync(long timestamp)
Set an expire date for object in async mode.RFuture<Boolean>
expireAtAsync(Date timestamp)
Set an expire date for object in async mode.Map<V,String>
hash(V... members)
Returns 11 characters Geohash string mapped by defined member.RFuture<Map<V,String>>
hashAsync(V... members)
Returns 11 characters Geohash string mapped by defined member.Map<V,GeoPosition>
pos(V... members)
Returns geo-position mapped by defined member.RFuture<Map<V,GeoPosition>>
posAsync(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 countRFuture<List<V>>
radiusAsync(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.RFuture<List<V>>
radiusAsync(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 countRFuture<List<V>>
radiusAsync(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
RFuture<List<V>>
radiusAsync(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 countRFuture<List<V>>
radiusAsync(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.RFuture<List<V>>
radiusAsync(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 countRFuture<List<V>>
radiusAsync(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
RFuture<List<V>>
radiusAsync(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
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.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
.RFuture<Long>
radiusStoreToAsync(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.RFuture<Long>
radiusStoreToAsync(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
.RFuture<Long>
radiusStoreToAsync(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
.RFuture<Long>
radiusStoreToAsync(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.RFuture<Long>
radiusStoreToAsync(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
.RFuture<Long>
radiusStoreToAsync(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.RFuture<Map<V,Double>>
radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
Returns the distance mapped by member, distance between member and the location.RFuture<Map<V,Double>>
radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Returns the distance mapped by member, distance between member and the location.RFuture<Map<V,Double>>
radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the distance mapped by member, distance between member and the location.RFuture<Map<V,Double>>
radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the distance mapped by member, distance between member and the location.RFuture<Map<V,Double>>
radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit)
Returns the distance mapped by member, distance between member and the defined member location.RFuture<Map<V,Double>>
radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, int count)
Returns the distance mapped by member, distance between member and the defined member location.RFuture<Map<V,Double>>
radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the distance mapped by member, distance between member and the defined member location.RFuture<Map<V,Double>>
radiusWithDistanceAsync(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.RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
Returns the geo-position mapped by member.RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Returns the geo-position mapped by member.RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the geo-position mapped by member.RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the geo-position mapped by member.RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit)
Returns the geo-position mapped by member.RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, int count)
Returns the geo-position mapped by member.RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Returns the geo-position mapped by member.RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Returns the geo-position mapped by member.long
remainTimeToLive()
Remaining time to live of Redisson object that has a timeoutRFuture<Long>
remainTimeToLiveAsync()
Remaining time to live of Redisson object that has a timeout-
Methods inherited from class org.redisson.RedissonScoredSortedSet
add, addAll, addAllAsync, addAndGetRank, addAndGetRankAsync, addAndGetRevRank, addAndGetRevRankAsync, addAsync, addScore, addScoreAndGetRank, addScoreAndGetRankAsync, addScoreAndGetRevRank, addScoreAndGetRevRankAsync, addScoreAsync, clear, contains, containsAll, containsAllAsync, containsAsync, count, countAsync, entryRange, entryRange, entryRange, entryRangeAsync, entryRangeAsync, entryRangeAsync, entryRangeReversed, entryRangeReversed, entryRangeReversed, entryRangeReversedAsync, entryRangeReversedAsync, entryRangeReversedAsync, first, firstAsync, firstScore, firstScoreAsync, getScore, getScoreAsync, intersection, intersection, intersection, intersection, intersectionAsync, intersectionAsync, intersectionAsync, intersectionAsync, isEmpty, iterator, iterator, iterator, iterator, last, lastAsync, lastScore, lastScoreAsync, mapReduce, pollFirst, pollFirst, pollFirst, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstFromAny, pollFirstFromAnyAsync, pollLast, pollLast, pollLast, pollLastAsync, pollLastAsync, pollLastAsync, pollLastFromAny, pollLastFromAnyAsync, rank, rankAsync, readAll, readAllAsync, readSort, readSort, readSort, readSort, readSort, readSort, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, remove, removeAll, removeAllAsync, removeAsync, removeRangeByRank, removeRangeByRankAsync, removeRangeByScore, removeRangeByScoreAsync, retainAll, retainAllAsync, revRank, revRankAsync, scanIteratorAsync, size, sizeAsync, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, takeFirst, takeFirstAsync, takeLast, takeLastAsync, toArray, toArray, tryAdd, tryAddAsync, union, union, union, union, unionAsync, unionAsync, unionAsync, unionAsync, valueRange, valueRange, valueRange, valueRangeAsync, valueRangeAsync, valueRangeAsync, valueRangeReversed, valueRangeReversed, valueRangeReversed, valueRangeReversedAsync, valueRangeReversedAsync, valueRangeReversedAsync
-
Methods inherited from class org.redisson.RedissonObject
await, copy, copyAsync, delete, deleteAsync, dump, dumpAsync, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getName, getName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, touch, touchAsync, unlink, unlinkAsync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.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
-
-
-
-
Constructor Detail
-
RedissonGeo
public RedissonGeo(CommandAsyncExecutor connectionManager, String name, RedissonClient redisson)
-
RedissonGeo
public RedissonGeo(Codec codec, CommandAsyncExecutor connectionManager, String name, RedissonClient redisson)
-
-
Method Detail
-
addAsync
public RFuture<Long> addAsync(double longitude, double latitude, V member)
Description copied from interface:RGeoAsync
Adds geospatial member.
-
add
public long add(double longitude, double latitude, V member)
Description copied from interface:RGeo
Adds geospatial member.
-
add
public long add(GeoEntry... entries)
Description copied from interface:RGeo
Adds geospatial members.
-
addAsync
public RFuture<Long> addAsync(GeoEntry... entries)
Description copied from interface:RGeoAsync
Adds geospatial members.
-
dist
public Double dist(V firstMember, V secondMember, GeoUnit geoUnit)
Description copied from interface:RGeo
Returns distance between members inGeoUnit
units.
-
distAsync
public RFuture<Double> distAsync(V firstMember, V secondMember, GeoUnit geoUnit)
Description copied from interface:RGeoAsync
Returns distance between members inGeoUnit
units.
-
hash
public Map<V,String> hash(V... members)
Description copied from interface:RGeo
Returns 11 characters Geohash string mapped by defined member.
-
hashAsync
public RFuture<Map<V,String>> hashAsync(V... members)
Description copied from interface:RGeoAsync
Returns 11 characters Geohash string mapped by defined member.
-
pos
public Map<V,GeoPosition> pos(V... members)
Description copied from interface:RGeo
Returns geo-position mapped by defined member.
-
posAsync
public RFuture<Map<V,GeoPosition>> posAsync(V... members)
Description copied from interface:RGeoAsync
Returns geo-position mapped by defined member.
-
radius
public List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit)
Description copied from interface:RGeo
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.
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
Description copied from interface:RGeoAsync
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.- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- list of objects
-
radius
public List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeo
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
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeoAsync
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- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- list of objects
-
radius
public List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Description copied from interface:RGeo
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
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Description copied from interface:RGeoAsync
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
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of result- Returns:
- list of objects
-
radius
public List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeo
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
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeoAsync
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- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of resultcount
- - result limit- Returns:
- list of objects
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit)
Description copied from interface:RGeo
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.- Specified by:
radiusWithDistance
in interfaceRGeo<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- distance mapped by object
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
Description copied from interface:RGeoAsync
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.- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- distance mapped by object
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeo
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.- Specified by:
radiusWithDistance
in interfaceRGeo<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- distance mapped by object
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeoAsync
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.- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- distance mapped by object
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Description copied from interface:RGeo
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
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of result- Returns:
- distance mapped by object
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Description copied from interface:RGeoAsync
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
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of result- Returns:
- distance mapped by object
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeo
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- Specified by:
radiusWithDistance
in interfaceRGeo<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of resultcount
- - result limit- Returns:
- distance mapped by object
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeoAsync
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- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
- 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
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit)
Description copied from interface:RGeo
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.- Specified by:
radiusWithPosition
in interfaceRGeo<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- geo position mapped by object
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
Description copied from interface:RGeoAsync
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.- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- geo position mapped by object
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeo
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- Specified by:
radiusWithPosition
in interfaceRGeo<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- geo position mapped by object
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeoAsync
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- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- geo position mapped by object
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Description copied from interface:RGeo
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
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo order- Returns:
- geo position mapped by object
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Description copied from interface:RGeoAsync
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
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo order- Returns:
- geo position mapped by object
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeo
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- Specified by:
radiusWithPosition
in interfaceRGeo<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limit- Returns:
- geo position mapped by object
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeoAsync
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- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
- 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
public List<V> radius(V member, double radius, GeoUnit geoUnit)
Description copied from interface:RGeo
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.
-
radiusAsync
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit)
Description copied from interface:RGeoAsync
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.- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- list of objects
-
radius
public List<V> radius(V member, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeo
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
-
radiusAsync
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeoAsync
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- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- list of objects
-
radius
public List<V> radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Description copied from interface:RGeo
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
-
radiusAsync
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Description copied from interface:RGeoAsync
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
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo order- Returns:
- list of objects
-
radius
public List<V> radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeo
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
-
radiusAsync
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeoAsync
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
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limit- Returns:
- list of objects
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit)
Description copied from interface:RGeo
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.- Specified by:
radiusWithDistance
in interfaceRGeo<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- distance mapped by object
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit)
Description copied from interface:RGeoAsync
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.- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- distance mapped by object
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeo
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- Specified by:
radiusWithDistance
in interfaceRGeo<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- distance mapped by object
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeoAsync
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- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- distance mapped by object
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Description copied from interface:RGeo
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
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo order- Returns:
- distance mapped by object
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Description copied from interface:RGeoAsync
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
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo- Returns:
- distance mapped by object
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeo
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- Specified by:
radiusWithDistance
in interfaceRGeo<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limit- Returns:
- distance mapped by object
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeoAsync
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- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geocount
- - result limit- Returns:
- distance mapped by object
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit)
Description copied from interface:RGeo
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.- Specified by:
radiusWithPosition
in interfaceRGeo<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- geo position mapped by object
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit)
Description copied from interface:RGeoAsync
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.- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- geo position mapped by object
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeo
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- Specified by:
radiusWithPosition
in interfaceRGeo<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- geo position mapped by object
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeoAsync
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- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- geo position mapped by object
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Description copied from interface:RGeo
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
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo order- Returns:
- geo position mapped by object
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Description copied from interface:RGeoAsync
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
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo order- Returns:
- geo position mapped by object
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeo
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- Specified by:
radiusWithPosition
in interfaceRGeo<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limit- Returns:
- geo position mapped by object
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeoAsync
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- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
- Parameters:
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limit- Returns:
- geo position mapped by object
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
Description copied from interface:RGeo
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
.- Specified by:
radiusStoreTo
in interfaceRGeo<V>
- Parameters:
destName
- - Geo object destinationlongitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- length of result
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
Description copied from interface:RGeoAsync
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
.- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
- Parameters:
destName
- - Geo object destinationlongitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- length of result
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeo
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
.- Specified by:
radiusStoreTo
in interfaceRGeo<V>
- Parameters:
destName
- - Geo object destinationlongitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- length of result
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeoAsync
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
.- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
- Parameters:
destName
- - Geo object destinationlongitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- length of result
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeo
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
.- Specified by:
radiusStoreTo
in interfaceRGeo<V>
- 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
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeoAsync
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
.- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
- 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
public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit)
Description copied from interface:RGeo
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
.- Specified by:
radiusStoreTo
in interfaceRGeo<V>
- Parameters:
destName
- - Geo object destinationmember
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- length of result
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit)
Description copied from interface:RGeoAsync
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
.- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
- Parameters:
destName
- - Geo object destinationmember
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unit- Returns:
- length of result
-
radiusStoreTo
public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeo
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
.- Specified by:
radiusStoreTo
in interfaceRGeo<V>
- Parameters:
destName
- - Geo object destinationmember
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- length of result
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count)
Description copied from interface:RGeoAsync
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
.- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
- Parameters:
destName
- - Geo object destinationmember
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limit- Returns:
- length of result
-
radiusStoreTo
public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeo
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
.- Specified by:
radiusStoreTo
in interfaceRGeo<V>
- Parameters:
destName
- - Geo object destinationmember
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limit- Returns:
- length of result
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Description copied from interface:RGeoAsync
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
.- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
- Parameters:
destName
- - Geo object destinationmember
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limit- Returns:
- length of result
-
expire
public boolean expire(long timeToLive, TimeUnit timeUnit)
Description copied from interface:RExpirable
Set a timeout for object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expire
in interfaceRExpirable
- Parameters:
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unit- Returns:
true
if the timeout was set andfalse
if not
-
expireAsync
public RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit)
Description copied from interface:RExpirableAsync
Set a timeout for object in async mode. After the timeout has expired, the key will automatically be deleted.- Specified by:
expireAsync
in interfaceRExpirableAsync
- Parameters:
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unit- Returns:
true
if the timeout was set andfalse
if not
-
expireAt
public boolean expireAt(long timestamp)
Description copied from interface:RExpirable
Set an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAt
in interfaceRExpirable
- Parameters:
timestamp
- - expire date in milliseconds (Unix timestamp)- Returns:
true
if the timeout was set andfalse
if not
-
expireAtAsync
public RFuture<Boolean> expireAtAsync(long timestamp)
Description copied from interface:RExpirableAsync
Set an expire date for object in async mode. When expire date comes the key will automatically be deleted.- Specified by:
expireAtAsync
in interfaceRExpirableAsync
- Parameters:
timestamp
- - expire date in milliseconds (Unix timestamp)- Returns:
true
if the timeout was set andfalse
if not
-
expireAt
public boolean expireAt(Date timestamp)
Description copied from interface:RExpirable
Set an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAt
in interfaceRExpirable
- Parameters:
timestamp
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireAtAsync
public RFuture<Boolean> expireAtAsync(Date timestamp)
Description copied from interface:RExpirableAsync
Set an expire date for object in async mode. When expire date comes the key will automatically be deleted.- Specified by:
expireAtAsync
in interfaceRExpirableAsync
- Parameters:
timestamp
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
clearExpire
public boolean clearExpire()
Description copied from interface:RExpirable
Clear an expire timeout or expire date for object.- Specified by:
clearExpire
in interfaceRExpirable
- Returns:
true
if timeout was removedfalse
if object does not exist or does not have an associated timeout
-
clearExpireAsync
public RFuture<Boolean> clearExpireAsync()
Description copied from interface:RExpirableAsync
Clear an expire timeout or expire date for object in async mode. Object will not be deleted.- Specified by:
clearExpireAsync
in interfaceRExpirableAsync
- Returns:
true
if the timeout was cleared andfalse
if not
-
remainTimeToLive
public long remainTimeToLive()
Description copied from interface:RExpirable
Remaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLive
in interfaceRExpirable
- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
remainTimeToLiveAsync
public RFuture<Long> remainTimeToLiveAsync()
Description copied from interface:RExpirableAsync
Remaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLiveAsync
in interfaceRExpirableAsync
- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
-