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, name
-
-
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
addIfExists(double longitude, double latitude, V member)
Adds geospatial member only if it's already exists.long
addIfExists(GeoEntry... entries)
Adds geospatial members only if it's already exists.RFuture<Boolean>
addIfExistsAsync(double longitude, double latitude, V member)
Adds geospatial member only if it's already exists.RFuture<Long>
addIfExistsAsync(GeoEntry... entries)
Adds geospatial members only if it's already exists.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.protected RFuture<Boolean>
clearExpireAsync(String... keys)
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.boolean
expire(Instant instant)
Set an expire date for object.RFuture<Boolean>
expireAsync(long timeToLive, TimeUnit timeUnit)
Set a timeout for object in async mode.protected RFuture<Boolean>
expireAsync(long timeToLive, TimeUnit timeUnit, String... keys)
RFuture<Boolean>
expireAsync(Instant instant)
Set an expire date for object.boolean
expireAt(long timestamp)
UseRExpirable.expire(Instant)
insteadboolean
expireAt(Date timestamp)
UseRExpirable.expire(Instant)
insteadRFuture<Boolean>
expireAtAsync(long timestamp)
UseRExpirableAsync.expireAsync(Instant)
insteadprotected RFuture<Boolean>
expireAtAsync(long timestamp, String... keys)
RFuture<Boolean>
expireAtAsync(Date timestamp)
UseRExpirableAsync.expireAsync(Instant)
insteadMap<V,String>
hash(V... members)
Returns 11 characters long 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)
List<V>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
List<V>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
List<V>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
List<V>
radius(V member, double radius, GeoUnit geoUnit)
List<V>
radius(V member, double radius, GeoUnit geoUnit, int count)
List<V>
radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
List<V>
radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RFuture<List<V>>
radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
RFuture<List<V>>
radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
RFuture<List<V>>
radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
RFuture<List<V>>
radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RFuture<List<V>>
radiusAsync(V member, double radius, GeoUnit geoUnit)
RFuture<List<V>>
radiusAsync(V member, double radius, GeoUnit geoUnit, int count)
RFuture<List<V>>
radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
RFuture<List<V>>
radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
long
radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
long
radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
long
radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
long
radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit)
long
radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
long
radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RFuture<Long>
radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
RFuture<Long>
radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
RFuture<Long>
radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RFuture<Long>
radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit)
RFuture<Long>
radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count)
RFuture<Long>
radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
long
radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
long
radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
long
radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
long
radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit)
long
radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
long
radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RFuture<Long>
radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
RFuture<Long>
radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
RFuture<Long>
radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RFuture<Long>
radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit)
RFuture<Long>
radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count)
RFuture<Long>
radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Map<V,Double>
radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit)
Map<V,Double>
radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Map<V,Double>
radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Map<V,Double>
radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Map<V,Double>
radiusWithDistance(V member, double radius, GeoUnit geoUnit)
Map<V,Double>
radiusWithDistance(V member, double radius, GeoUnit geoUnit, int count)
Map<V,Double>
radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Map<V,Double>
radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RFuture<Map<V,Double>>
radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
RFuture<Map<V,Double>>
radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
RFuture<Map<V,Double>>
radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
RFuture<Map<V,Double>>
radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RFuture<Map<V,Double>>
radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit)
RFuture<Map<V,Double>>
radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, int count)
RFuture<Map<V,Double>>
radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
RFuture<Map<V,Double>>
radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Map<V,GeoPosition>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit)
Map<V,GeoPosition>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Map<V,GeoPosition>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Map<V,GeoPosition>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Map<V,GeoPosition>
radiusWithPosition(V member, double radius, GeoUnit geoUnit)
Map<V,GeoPosition>
radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count)
Map<V,GeoPosition>
radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Map<V,GeoPosition>
radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit)
RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, int count)
RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
RFuture<Map<V,GeoPosition>>
radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
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 timeoutList<V>
search(GeoSearchArgs args)
Returns the members of a sorted set, which are within the borders of specified search conditions.RFuture<List<V>>
searchAsync(GeoSearchArgs args)
Returns the members of a sorted set, which are within the borders of specified search conditions.Map<V,Double>
searchWithDistance(GeoSearchArgs args)
Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.RFuture<Map<V,Double>>
searchWithDistanceAsync(GeoSearchArgs args)
Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.Map<V,GeoPosition>
searchWithPosition(GeoSearchArgs args)
Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.RFuture<Map<V,GeoPosition>>
searchWithPositionAsync(GeoSearchArgs args)
Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.long
storeSearchTo(String destName, GeoSearchArgs args)
Finds the members of a sorted set, which are within the borders of specified search conditions.RFuture<Long>
storeSearchToAsync(String destName, GeoSearchArgs args)
Finds the members of a sorted set, which are within the borders of specified search conditions.long
storeSortedSearchTo(String destName, GeoSearchArgs args)
Finds the members of a sorted set, which are within the borders of specified search conditions.RFuture<Long>
storeSortedSearchToAsync(String destName, GeoSearchArgs args)
Finds the members of a sorted set, which are within the borders of specified search conditions.boolean
tryAdd(double longitude, double latitude, V member)
Adds geospatial member only if has not been added before.long
tryAdd(GeoEntry... entries)
Adds geospatial members only if has not been added before.RFuture<Boolean>
tryAddAsync(double longitude, double latitude, V member)
Adds geospatial member only if has not been added before.RFuture<Long>
tryAddAsync(GeoEntry... entries)
Adds geospatial members only if has not been added before.-
Methods inherited from class org.redisson.RedissonScoredSortedSet
add, addAll, addAllAsync, addAndGetRank, addAndGetRankAsync, addAndGetRevRank, addAndGetRevRank, addAndGetRevRankAsync, addAndGetRevRankAsync, addAsync, addIfExists, addIfExistsAsync, addIfGreater, addIfGreaterAsync, addIfLess, addIfLessAsync, addListener, addListenerAsync, addScore, addScoreAndGetRank, addScoreAndGetRankAsync, addScoreAndGetRevRank, addScoreAndGetRevRankAsync, addScoreAsync, clear, contains, containsAll, containsAllAsync, containsAsync, count, countAsync, countIntersection, countIntersection, countIntersectionAsync, countIntersectionAsync, diff, diffAsync, distributedIterator, distributedIterator, distributedIterator, entryRange, entryRange, entryRange, entryRangeAsync, entryRangeAsync, entryRangeAsync, entryRangeReversed, entryRangeReversed, entryRangeReversed, entryRangeReversedAsync, entryRangeReversedAsync, entryRangeReversedAsync, first, firstAsync, firstScore, firstScoreAsync, getScore, getScore, getScoreAsync, 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, random, random, randomAsync, randomAsync, randomEntries, randomEntriesAsync, rangeTo, rangeTo, rangeTo, rangeToAsync, rangeToAsync, rangeToAsync, rank, rankAsync, readAll, readAllAsync, readDiff, readDiffAsync, readIntersection, readIntersection, readIntersection, readIntersection, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readSort, readSort, readSort, readSort, readSort, readSort, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readUnion, readUnion, readUnion, readUnion, readUnionAsync, readUnionAsync, readUnionAsync, readUnionAsync, remove, removeAll, removeAllAsync, removeAsync, removeListener, removeListenerAsync, removeRangeByRank, removeRangeByRankAsync, removeRangeByScore, removeRangeByScoreAsync, retainAll, retainAllAsync, revRangeTo, revRangeTo, revRangeTo, revRangeToAsync, revRangeToAsync, revRangeToAsync, revRank, revRank, revRankAsync, revRankAsync, scanIteratorAsync, size, sizeAsync, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, stream, stream, stream, stream, subscribeOnFirstElements, subscribeOnLastElements, takeFirst, takeFirstAsync, takeLast, takeLastAsync, toArray, toArray, tryAdd, tryAddAsync, union, union, union, union, unionAsync, unionAsync, unionAsync, unionAsync, unsubscribe, valueRange, valueRange, valueRange, valueRangeAsync, valueRangeAsync, valueRangeAsync, valueRangeReversed, valueRangeReversed, valueRangeReversed, valueRangeReversedAsync, valueRangeReversedAsync, valueRangeReversedAsync
-
Methods inherited from class org.redisson.RedissonObject
addListener, addListenerAsync, copy, copyAsync, delete, deleteAsync, deleteAsync, dump, dumpAsync, encode, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getIdleTime, getIdleTimeAsync, getLockByMapKey, getLockByValue, getName, getRawName, getRawName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, removeListenersAsync, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, setName, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, 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, expire, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RObject
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
Methods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
Methods inherited from interface org.redisson.api.RScoredSortedSet
add, addAll, addAndGetRank, addAndGetRevRank, addAndGetRevRank, addIfExists, addIfGreater, addIfLess, addScore, addScoreAndGetRank, addScoreAndGetRevRank, clear, contains, containsAll, count, countIntersection, countIntersection, diff, distributedIterator, distributedIterator, distributedIterator, entryRange, entryRange, entryRange, entryRangeReversed, entryRangeReversed, entryRangeReversed, first, firstScore, getScore, getScore, intersection, intersection, intersection, intersection, isEmpty, iterator, iterator, iterator, last, lastScore, mapReduce, pollFirst, pollFirst, pollFirst, pollFirstFromAny, pollLast, pollLast, pollLast, pollLastFromAny, random, random, randomEntries, rangeTo, rangeTo, rangeTo, rank, readAll, readDiff, readIntersection, readIntersection, readIntersection, readIntersection, readUnion, readUnion, readUnion, readUnion, remove, removeAll, removeRangeByRank, removeRangeByScore, retainAll, revRangeTo, revRangeTo, revRangeTo, revRank, revRank, size, stream, stream, stream, stream, subscribeOnFirstElements, subscribeOnLastElements, takeFirst, takeLast, toArray, toArray, tryAdd, union, union, union, union, unsubscribe, valueRange, valueRange, valueRange, valueRangeReversed, valueRangeReversed, valueRangeReversed
-
Methods inherited from interface org.redisson.api.RScoredSortedSetAsync
addAllAsync, addAndGetRankAsync, addAndGetRevRankAsync, addAndGetRevRankAsync, addAsync, addIfExistsAsync, addIfGreaterAsync, addIfLessAsync, addScoreAndGetRankAsync, addScoreAndGetRevRankAsync, addScoreAsync, containsAllAsync, containsAsync, countAsync, countIntersectionAsync, countIntersectionAsync, diffAsync, entryRangeAsync, entryRangeAsync, entryRangeAsync, entryRangeReversedAsync, entryRangeReversedAsync, entryRangeReversedAsync, firstAsync, firstScoreAsync, getScoreAsync, getScoreAsync, intersectionAsync, intersectionAsync, intersectionAsync, intersectionAsync, lastAsync, lastScoreAsync, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstFromAnyAsync, pollLastAsync, pollLastAsync, pollLastAsync, pollLastFromAnyAsync, randomAsync, randomAsync, randomEntriesAsync, rangeToAsync, rangeToAsync, rangeToAsync, rankAsync, readAllAsync, readDiffAsync, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readUnionAsync, readUnionAsync, readUnionAsync, readUnionAsync, removeAllAsync, removeAsync, removeRangeByRankAsync, removeRangeByScoreAsync, retainAllAsync, revRangeToAsync, revRangeToAsync, revRangeToAsync, revRankAsync, 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.
-
addIfExists
public Boolean addIfExists(double longitude, double latitude, V member)
Description copied from interface:RGeo
Adds geospatial member only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExists
in interfaceRGeo<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectmember
- - object itself- Returns:
- number of elements added to the sorted set
-
addIfExists
public long addIfExists(GeoEntry... entries)
Description copied from interface:RGeo
Adds geospatial members only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExists
in interfaceRGeo<V>
- Parameters:
entries
- - objects- Returns:
- number of elements added to the sorted set
-
addIfExistsAsync
public RFuture<Boolean> addIfExistsAsync(double longitude, double latitude, V member)
Description copied from interface:RGeoAsync
Adds geospatial member only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExistsAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectmember
- - object itself- Returns:
- number of elements added to the sorted set
-
addIfExistsAsync
public RFuture<Long> addIfExistsAsync(GeoEntry... entries)
Description copied from interface:RGeoAsync
Adds geospatial members only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExistsAsync
in interfaceRGeoAsync<V>
- Parameters:
entries
- - objects- Returns:
- number of elements added to the sorted set
-
tryAdd
public boolean tryAdd(double longitude, double latitude, V member)
Description copied from interface:RGeo
Adds geospatial member only if has not been added before.Requires Redis 6.2.0 and higher.
-
tryAdd
public long tryAdd(GeoEntry... entries)
Description copied from interface:RGeo
Adds geospatial members only if has not been added before.Requires Redis 6.2.0 and higher.
-
tryAddAsync
public RFuture<Boolean> tryAddAsync(double longitude, double latitude, V member)
Description copied from interface:RGeoAsync
Adds geospatial member only if has not been added before.Requires Redis 6.2.0 and higher.
- Specified by:
tryAddAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectmember
- - object itself- Returns:
- number of elements added to the sorted set
-
tryAddAsync
public RFuture<Long> tryAddAsync(GeoEntry... entries)
Description copied from interface:RGeoAsync
Adds geospatial members only if has not been added before.Requires Redis 6.2.0 and higher.
- Specified by:
tryAddAsync
in interfaceRGeoAsync<V>
- Parameters:
entries
- - objects- Returns:
- number of elements added to the sorted set
-
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 long 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.
-
search
public List<V> search(GeoSearchArgs args)
Description copied from interface:RGeo
Returns the members of a sorted set, which are within the borders of specified search conditions.Usage examples:
List objects = geo.search(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
List objects = geo.search(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
-
searchAsync
public RFuture<List<V>> searchAsync(GeoSearchArgs args)
Description copied from interface:RGeoAsync
Returns the members of a sorted set, which are within the borders of specified search conditions.Usage examples:
RFuture objects = geo.searchAsync(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
RFuture objects = geo.searchAsync(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
- Specified by:
searchAsync
in interfaceRGeoAsync<V>
- Parameters:
args
- - search conditions object- Returns:
- list of memebers
-
searchWithDistance
public Map<V,Double> searchWithDistance(GeoSearchArgs args)
Description copied from interface:RGeo
Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
List objects = geo.searchWithDistance(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
List objects = geo.searchWithDistance(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
- Specified by:
searchWithDistance
in interfaceRGeo<V>
- Parameters:
args
- - search conditions object- Returns:
- distance mapped by object
-
searchWithDistanceAsync
public RFuture<Map<V,Double>> searchWithDistanceAsync(GeoSearchArgs args)
Description copied from interface:RGeoAsync
Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
RFuture objects = geo.searchWithDistanceAsync(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
RFuture objects = geo.searchWithDistanceAsync(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
- Specified by:
searchWithDistanceAsync
in interfaceRGeoAsync<V>
- Parameters:
args
- - search conditions object- Returns:
- distance mapped by object
-
searchWithPosition
public Map<V,GeoPosition> searchWithPosition(GeoSearchArgs args)
Description copied from interface:RGeo
Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
List objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
List objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
- Specified by:
searchWithPosition
in interfaceRGeo<V>
- Parameters:
args
- - search conditions object- Returns:
- position mapped by object
-
searchWithPositionAsync
public RFuture<Map<V,GeoPosition>> searchWithPositionAsync(GeoSearchArgs args)
Description copied from interface:RGeoAsync
Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
List objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
List objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
- Specified by:
searchWithPositionAsync
in interfaceRGeoAsync<V>
- Parameters:
args
- - search conditions object- Returns:
- position mapped by object
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radius
public List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radius
public List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radius
public List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusAsync
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radiusAsync
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radiusAsync
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radius
public List<V> radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
-
radiusAsync
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
storeSearchTo
public long storeSearchTo(String destName, GeoSearchArgs args)
Description copied from interface:RGeo
Finds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destName
.Usage examples:
long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
- Specified by:
storeSearchTo
in interfaceRGeo<V>
args
- - search conditions object- Returns:
- length of result
-
storeSearchToAsync
public RFuture<Long> storeSearchToAsync(String destName, GeoSearchArgs args)
Description copied from interface:RGeoAsync
Finds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destName
.Usage examples:
long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
- Specified by:
storeSearchToAsync
in interfaceRGeoAsync<V>
args
- - search conditions object- Returns:
- length of result
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
storeSortedSearchTo
public long storeSortedSearchTo(String destName, GeoSearchArgs args)
Description copied from interface:RGeo
Finds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destName
sorted by distance.Usage examples:
long count = geo.storeSortedSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
long count = geo.storeSortedSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
- Specified by:
storeSortedSearchTo
in interfaceRGeo<V>
args
- - search conditions object- Returns:
- length of result
-
storeSortedSearchToAsync
public RFuture<Long> storeSortedSearchToAsync(String destName, GeoSearchArgs args)
Description copied from interface:RGeoAsync
Finds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destName
sorted by distance.Usage examples:
long count = geo.storeSortedSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
long count = geo.storeSortedSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
- Specified by:
storeSortedSearchToAsync
in interfaceRGeoAsync<V>
args
- - search conditions object- Returns:
- length of result
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
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
UseRExpirable.expire(Instant)
instead- 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
UseRExpirableAsync.expireAsync(Instant)
instead- Specified by:
expireAtAsync
in interfaceRExpirableAsync
- Parameters:
timestamp
- - expire date in milliseconds (Unix timestamp)- Returns:
true
if the timeout was set andfalse
if not
-
expire
public boolean expire(Instant instant)
Description copied from interface:RExpirable
Set an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expire
in interfaceRExpirable
- Parameters:
instant
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireAsync
public RFuture<Boolean> expireAsync(Instant instant)
Description copied from interface:RExpirableAsync
Set an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAsync
in interfaceRExpirableAsync
- Parameters:
instant
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireAt
public boolean expireAt(Date timestamp)
Description copied from interface:RExpirable
UseRExpirable.expire(Instant)
instead- 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
UseRExpirableAsync.expireAsync(Instant)
instead- 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.
-
expireAsync
protected RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit, String... keys)
-
-