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 longadd(double longitude, double latitude, V member)Adds geospatial member.longadd(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.BooleanaddIfExists(double longitude, double latitude, V member)Adds geospatial member only if it's already exists.longaddIfExists(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.booleanclearExpire()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)Doubledist(V firstMember, V secondMember, GeoUnit geoUnit)Returns distance between members inGeoUnitunits.RFuture<Double>distAsync(V firstMember, V secondMember, GeoUnit geoUnit)Returns distance between members inGeoUnitunits.booleanexpire(long timeToLive, TimeUnit timeUnit)Set a timeout for object.booleanexpire(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.booleanexpireAt(long timestamp)UseRExpirable.expire(Instant)insteadbooleanexpireAt(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)longradiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)longradiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)longradiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)longradiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit)longradiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, int count)longradiusStoreSortedTo(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)longradiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)longradiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)longradiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)longradiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit)longradiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, int count)longradiusStoreTo(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)longremainTimeToLive()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.longstoreSearchTo(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.longstoreSortedSearchTo(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.booleantryAdd(double longitude, double latitude, V member)Adds geospatial member only if has not been added before.longtryAdd(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, diff, diffAsync, 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, diff, 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, 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:RGeoAsyncAdds geospatial member.
-
add
public long add(double longitude, double latitude, V member)Description copied from interface:RGeoAdds geospatial member.
-
add
public long add(GeoEntry... entries)
Description copied from interface:RGeoAdds geospatial members.
-
addAsync
public RFuture<Long> addAsync(GeoEntry... entries)
Description copied from interface:RGeoAsyncAdds geospatial members.
-
addIfExists
public Boolean addIfExists(double longitude, double latitude, V member)
Description copied from interface:RGeoAdds geospatial member only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExistsin 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:RGeoAdds geospatial members only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExistsin 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:RGeoAsyncAdds geospatial member only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExistsAsyncin 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:RGeoAsyncAdds geospatial members only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExistsAsyncin 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:RGeoAdds 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:RGeoAdds 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:RGeoAsyncAdds geospatial member only if has not been added before.Requires Redis 6.2.0 and higher.
- Specified by:
tryAddAsyncin 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:RGeoAsyncAdds geospatial members only if has not been added before.Requires Redis 6.2.0 and higher.
- Specified by:
tryAddAsyncin 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:RGeoReturns distance between members inGeoUnitunits.
-
distAsync
public RFuture<Double> distAsync(V firstMember, V secondMember, GeoUnit geoUnit)
Description copied from interface:RGeoAsyncReturns distance between members inGeoUnitunits.
-
hash
public Map<V,String> hash(V... members)
Description copied from interface:RGeoReturns 11 characters long Geohash string mapped by defined member.
-
hashAsync
public RFuture<Map<V,String>> hashAsync(V... members)
Description copied from interface:RGeoAsyncReturns 11 characters Geohash string mapped by defined member.
-
pos
public Map<V,GeoPosition> pos(V... members)
Description copied from interface:RGeoReturns geo-position mapped by defined member.
-
posAsync
public RFuture<Map<V,GeoPosition>> posAsync(V... members)
Description copied from interface:RGeoAsyncReturns geo-position mapped by defined member.
-
search
public List<V> search(GeoSearchArgs args)
Description copied from interface:RGeoReturns 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:RGeoAsyncReturns 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:
searchAsyncin interfaceRGeoAsync<V>- Parameters:
args- - search conditions object- Returns:
- list of memebers
-
searchWithDistance
public Map<V,Double> searchWithDistance(GeoSearchArgs args)
Description copied from interface:RGeoReturns 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:
searchWithDistancein 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:RGeoAsyncReturns 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:
searchWithDistanceAsyncin interfaceRGeoAsync<V>- Parameters:
args- - search conditions object- Returns:
- distance mapped by object
-
searchWithPosition
public Map<V,GeoPosition> searchWithPosition(GeoSearchArgs args)
Description copied from interface:RGeoReturns 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:
searchWithPositionin 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:RGeoAsyncReturns 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:
searchWithPositionAsyncin 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:
radiusAsyncin 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:
radiusAsyncin 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:
radiusAsyncin 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:
radiusAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusAsync
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusAsyncin interfaceRGeoAsync<V>
-
radiusAsync
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusAsyncin interfaceRGeoAsync<V>
-
radiusAsync
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusAsyncin 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:
radiusAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreToin interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreToAsyncin interfaceRGeoAsync<V>
-
storeSearchTo
public long storeSearchTo(String destName, GeoSearchArgs args)
Description copied from interface:RGeoFinds 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:
storeSearchToin interfaceRGeo<V>args- - search conditions object- Returns:
- length of result
-
storeSearchToAsync
public RFuture<Long> storeSearchToAsync(String destName, GeoSearchArgs args)
Description copied from interface:RGeoAsyncFinds 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:
storeSearchToAsyncin 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:
radiusStoreToin interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreToAsyncin interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreToin interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreToAsyncin interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreToin interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreToAsyncin interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreToin interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreToAsyncin interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreToin interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreToAsyncin interfaceRGeoAsync<V>
-
storeSortedSearchTo
public long storeSortedSearchTo(String destName, GeoSearchArgs args)
Description copied from interface:RGeoFinds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destNamesorted 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:
storeSortedSearchToin interfaceRGeo<V>args- - search conditions object- Returns:
- length of result
-
storeSortedSearchToAsync
public RFuture<Long> storeSortedSearchToAsync(String destName, GeoSearchArgs args)
Description copied from interface:RGeoAsyncFinds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destNamesorted 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:
storeSortedSearchToAsyncin 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:
radiusStoreSortedToAsyncin interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreSortedToAsyncin interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreSortedToAsyncin interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreSortedToAsyncin interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreSortedToAsyncin interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreSortedToAsyncin interfaceRGeoAsync<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreSortedToin interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreSortedToin interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreSortedToin interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreSortedToin interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreSortedToin interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreSortedToin interfaceRGeo<V>
-
expire
public boolean expire(long timeToLive, TimeUnit timeUnit)Description copied from interface:RExpirableSet a timeout for object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expirein interfaceRExpirable- Parameters:
timeToLive- - timeout before object will be deletedtimeUnit- - timeout time unit- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
public RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit)
Description copied from interface:RExpirableAsyncSet a timeout for object in async mode. After the timeout has expired, the key will automatically be deleted.- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
timeToLive- - timeout before object will be deletedtimeUnit- - timeout time unit- Returns:
trueif the timeout was set andfalseif not
-
expireAt
public boolean expireAt(long timestamp)
Description copied from interface:RExpirableUseRExpirable.expire(Instant)instead- Specified by:
expireAtin interfaceRExpirable- Parameters:
timestamp- - expire date in milliseconds (Unix timestamp)- Returns:
trueif the timeout was set andfalseif not
-
expireAtAsync
public RFuture<Boolean> expireAtAsync(long timestamp)
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Instant)instead- Specified by:
expireAtAsyncin interfaceRExpirableAsync- Parameters:
timestamp- - expire date in milliseconds (Unix timestamp)- Returns:
trueif the timeout was set andfalseif not
-
expire
public boolean expire(Instant instant)
Description copied from interface:RExpirableSet an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expirein interfaceRExpirable- Parameters:
instant- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
public RFuture<Boolean> expireAsync(Instant instant)
Description copied from interface:RExpirableAsyncSet an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
instant- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expireAt
public boolean expireAt(Date timestamp)
Description copied from interface:RExpirableUseRExpirable.expire(Instant)instead- Specified by:
expireAtin interfaceRExpirable- Parameters:
timestamp- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expireAtAsync
public RFuture<Boolean> expireAtAsync(Date timestamp)
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Instant)instead- Specified by:
expireAtAsyncin interfaceRExpirableAsync- Parameters:
timestamp- - expire date- Returns:
trueif the timeout was set andfalseif not
-
clearExpire
public boolean clearExpire()
Description copied from interface:RExpirableClear an expire timeout or expire date for object.- Specified by:
clearExpirein interfaceRExpirable- Returns:
trueif timeout was removedfalseif object does not exist or does not have an associated timeout
-
clearExpireAsync
public RFuture<Boolean> clearExpireAsync()
Description copied from interface:RExpirableAsyncClear an expire timeout or expire date for object in async mode. Object will not be deleted.- Specified by:
clearExpireAsyncin interfaceRExpirableAsync- Returns:
trueif the timeout was cleared andfalseif not
-
remainTimeToLive
public long remainTimeToLive()
Description copied from interface:RExpirableRemaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLivein 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:RExpirableAsyncRemaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLiveAsyncin 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)
-
-