V - valuepublic class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V>
RScoredSortedSet.Aggregatecodec, commandExecutor, name| Constructor and Description |
|---|
RedissonGeo(Codec codec,
CommandAsyncExecutor connectionManager,
String name,
RedissonClient redisson) |
RedissonGeo(CommandAsyncExecutor connectionManager,
String name,
RedissonClient redisson) |
| Modifier and Type | Method and 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 in
GeoUnit units. |
RFuture<Double> |
distAsync(V firstMember,
V secondMember,
GeoUnit geoUnit)
Returns distance between members in
GeoUnit units. |
boolean |
expire(Instant instant)
Set an expire date for object.
|
boolean |
expire(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object.
|
RFuture<Boolean> |
expireAsync(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) |
boolean |
expireAt(Date timestamp)
Use
RExpirable.expire(Instant) instead |
boolean |
expireAt(long timestamp)
Use
RExpirable.expire(Instant) instead |
RFuture<Boolean> |
expireAtAsync(Date timestamp)
Use
RExpirableAsync.expireAsync(Instant) instead |
RFuture<Boolean> |
expireAtAsync(long timestamp)
Use
RExpirableAsync.expireAsync(Instant) instead |
protected RFuture<Boolean> |
expireAtAsync(long timestamp,
String... keys) |
Map<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,
GeoOrder geoOrder) |
List<V> |
radius(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
List<V> |
radius(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
List<V> |
radius(V member,
double radius,
GeoUnit geoUnit) |
List<V> |
radius(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder) |
List<V> |
radius(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
List<V> |
radius(V member,
double radius,
GeoUnit geoUnit,
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,
GeoOrder geoOrder) |
RFuture<List<V>> |
radiusAsync(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
RFuture<List<V>> |
radiusAsync(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
RFuture<List<V>> |
radiusAsync(V member,
double radius,
GeoUnit geoUnit) |
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) |
RFuture<List<V>> |
radiusAsync(V member,
double radius,
GeoUnit geoUnit,
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,
GeoOrder geoOrder,
int count) |
long |
radiusStoreSortedTo(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
long |
radiusStoreSortedTo(String destName,
V member,
double radius,
GeoUnit geoUnit) |
long |
radiusStoreSortedTo(String destName,
V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
long |
radiusStoreSortedTo(String destName,
V member,
double radius,
GeoUnit geoUnit,
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,
GeoOrder geoOrder,
int count) |
RFuture<Long> |
radiusStoreSortedToAsync(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
RFuture<Long> |
radiusStoreSortedToAsync(String destName,
V member,
double radius,
GeoUnit geoUnit) |
RFuture<Long> |
radiusStoreSortedToAsync(String destName,
V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
RFuture<Long> |
radiusStoreSortedToAsync(String destName,
V member,
double radius,
GeoUnit geoUnit,
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,
GeoOrder geoOrder,
int count) |
long |
radiusStoreTo(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
long |
radiusStoreTo(String destName,
V member,
double radius,
GeoUnit geoUnit) |
long |
radiusStoreTo(String destName,
V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
long |
radiusStoreTo(String destName,
V member,
double radius,
GeoUnit geoUnit,
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,
GeoOrder geoOrder,
int count) |
RFuture<Long> |
radiusStoreToAsync(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
RFuture<Long> |
radiusStoreToAsync(String destName,
V member,
double radius,
GeoUnit geoUnit) |
RFuture<Long> |
radiusStoreToAsync(String destName,
V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
RFuture<Long> |
radiusStoreToAsync(String destName,
V member,
double radius,
GeoUnit geoUnit,
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,
GeoOrder geoOrder) |
Map<V,Double> |
radiusWithDistance(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
Map<V,Double> |
radiusWithDistance(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
Map<V,Double> |
radiusWithDistance(V member,
double radius,
GeoUnit geoUnit) |
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) |
Map<V,Double> |
radiusWithDistance(V member,
double radius,
GeoUnit geoUnit,
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,
GeoOrder geoOrder) |
RFuture<Map<V,Double>> |
radiusWithDistanceAsync(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
RFuture<Map<V,Double>> |
radiusWithDistanceAsync(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
RFuture<Map<V,Double>> |
radiusWithDistanceAsync(V member,
double radius,
GeoUnit geoUnit) |
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) |
RFuture<Map<V,Double>> |
radiusWithDistanceAsync(V member,
double radius,
GeoUnit geoUnit,
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,
GeoOrder geoOrder) |
Map<V,GeoPosition> |
radiusWithPosition(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
Map<V,GeoPosition> |
radiusWithPosition(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
Map<V,GeoPosition> |
radiusWithPosition(V member,
double radius,
GeoUnit geoUnit) |
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) |
Map<V,GeoPosition> |
radiusWithPosition(V member,
double radius,
GeoUnit geoUnit,
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,
GeoOrder geoOrder) |
RFuture<Map<V,GeoPosition>> |
radiusWithPositionAsync(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
RFuture<Map<V,GeoPosition>> |
radiusWithPositionAsync(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
RFuture<Map<V,GeoPosition>> |
radiusWithPositionAsync(V member,
double radius,
GeoUnit geoUnit) |
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) |
RFuture<Map<V,GeoPosition>> |
radiusWithPositionAsync(V member,
double radius,
GeoUnit geoUnit,
int count) |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
RFuture<Long> |
remainTimeToLiveAsync()
Remaining time to live of Redisson object that has a timeout
|
List<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.
|
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, valueRangeReversedAsyncaddListener, 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, unlinkAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, 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, valueRangeReversedforEach, iterator, spliteratorclearExpire, expire, expire, expireAt, expireAt, remainTimeToLiveaddListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkreadSort, readSort, readSort, readSort, readSort, readSort, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, sortTo, sortTo, sortTo, sortTo, sortTo, sortToaddAllAsync, 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, valueRangeReversedAsyncclearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsyncaddListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncreadSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsyncpublic RedissonGeo(CommandAsyncExecutor connectionManager, String name, RedissonClient redisson)
public RedissonGeo(Codec codec, CommandAsyncExecutor connectionManager, String name, RedissonClient redisson)
public RFuture<Long> addAsync(double longitude, double latitude, V member)
RGeoAsyncpublic long add(double longitude,
double latitude,
V member)
RGeopublic long add(GeoEntry... entries)
RGeopublic RFuture<Long> addAsync(GeoEntry... entries)
RGeoAsyncpublic Boolean addIfExists(double longitude, double latitude, V member)
RGeoRequires Redis 6.2.0 and higher.
addIfExists in interface RGeo<V>longitude - - longitude of objectlatitude - - latitude of objectmember - - object itselfpublic long addIfExists(GeoEntry... entries)
RGeoRequires Redis 6.2.0 and higher.
addIfExists in interface RGeo<V>entries - - objectspublic RFuture<Boolean> addIfExistsAsync(double longitude, double latitude, V member)
RGeoAsyncRequires Redis 6.2.0 and higher.
addIfExistsAsync in interface RGeoAsync<V>longitude - - longitude of objectlatitude - - latitude of objectmember - - object itselfpublic RFuture<Long> addIfExistsAsync(GeoEntry... entries)
RGeoAsyncRequires Redis 6.2.0 and higher.
addIfExistsAsync in interface RGeoAsync<V>entries - - objectspublic boolean tryAdd(double longitude,
double latitude,
V member)
RGeoRequires Redis 6.2.0 and higher.
public long tryAdd(GeoEntry... entries)
RGeoRequires Redis 6.2.0 and higher.
public RFuture<Boolean> tryAddAsync(double longitude, double latitude, V member)
RGeoAsyncRequires Redis 6.2.0 and higher.
tryAddAsync in interface RGeoAsync<V>longitude - - longitude of objectlatitude - - latitude of objectmember - - object itselfpublic RFuture<Long> tryAddAsync(GeoEntry... entries)
RGeoAsyncRequires Redis 6.2.0 and higher.
tryAddAsync in interface RGeoAsync<V>entries - - objectspublic Double dist(V firstMember, V secondMember, GeoUnit geoUnit)
RGeoGeoUnit units.public RFuture<Double> distAsync(V firstMember, V secondMember, GeoUnit geoUnit)
RGeoAsyncGeoUnit units.public Map<V,String> hash(V... members)
RGeopublic RFuture<Map<V,String>> hashAsync(V... members)
RGeoAsyncpublic Map<V,GeoPosition> pos(V... members)
RGeopublic RFuture<Map<V,GeoPosition>> posAsync(V... members)
RGeoAsyncpublic List<V> search(GeoSearchArgs args)
RGeoUsage 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.
public RFuture<List<V>> searchAsync(GeoSearchArgs args)
RGeoAsyncUsage 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.
searchAsync in interface RGeoAsync<V>args - - search conditions objectpublic Map<V,Double> searchWithDistance(GeoSearchArgs args)
RGeoUsage 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.
searchWithDistance in interface RGeo<V>args - - search conditions objectpublic RFuture<Map<V,Double>> searchWithDistanceAsync(GeoSearchArgs args)
RGeoAsyncUsage 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.
searchWithDistanceAsync in interface RGeoAsync<V>args - - search conditions objectpublic Map<V,GeoPosition> searchWithPosition(GeoSearchArgs args)
RGeoUsage 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.
searchWithPosition in interface RGeo<V>args - - search conditions objectpublic RFuture<Map<V,GeoPosition>> searchWithPositionAsync(GeoSearchArgs args)
RGeoAsyncUsage 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.
searchWithPositionAsync in interface RGeoAsync<V>args - - search conditions objectpublic RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
radiusAsync in interface RGeoAsync<V>public List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
radiusAsync in interface RGeoAsync<V>public List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
radiusAsync in interface RGeoAsync<V>public List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusAsync in interface RGeoAsync<V>public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit)
radiusWithDistance in interface RGeo<V>public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
radiusWithDistanceAsync in interface RGeoAsync<V>public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
radiusWithDistance in interface RGeo<V>public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
radiusWithDistanceAsync in interface RGeoAsync<V>public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
radiusWithDistance in interface RGeo<V>public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
radiusWithDistanceAsync in interface RGeoAsync<V>public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusWithDistance in interface RGeo<V>public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusWithDistanceAsync in interface RGeoAsync<V>public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit)
radiusWithPosition in interface RGeo<V>public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
radiusWithPositionAsync in interface RGeoAsync<V>public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
radiusWithPosition in interface RGeo<V>public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
radiusWithPositionAsync in interface RGeoAsync<V>public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
radiusWithPosition in interface RGeo<V>public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
radiusWithPositionAsync in interface RGeoAsync<V>public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusWithPosition in interface RGeo<V>public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusWithPositionAsync in interface RGeoAsync<V>public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit)
radiusAsync in interface RGeoAsync<V>public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, int count)
radiusAsync in interface RGeoAsync<V>public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
radiusAsync in interface RGeoAsync<V>public List<V> radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusAsync in interface RGeoAsync<V>public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit)
radiusWithDistance in interface RGeo<V>public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit)
radiusWithDistanceAsync in interface RGeoAsync<V>public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, int count)
radiusWithDistance in interface RGeo<V>public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, int count)
radiusWithDistanceAsync in interface RGeoAsync<V>public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
radiusWithDistance in interface RGeo<V>public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
radiusWithDistanceAsync in interface RGeoAsync<V>public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusWithDistance in interface RGeo<V>public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusWithDistanceAsync in interface RGeoAsync<V>public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit)
radiusWithPosition in interface RGeo<V>public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit)
radiusWithPositionAsync in interface RGeoAsync<V>public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count)
radiusWithPosition in interface RGeo<V>public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, int count)
radiusWithPositionAsync in interface RGeoAsync<V>public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
radiusWithPosition in interface RGeo<V>public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
radiusWithPositionAsync in interface RGeoAsync<V>public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusWithPosition in interface RGeo<V>public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusWithPositionAsync in interface RGeoAsync<V>public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
radiusStoreTo in interface RGeo<V>public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
radiusStoreToAsync in interface RGeoAsync<V>public long storeSearchTo(String destName, GeoSearchArgs args)
RGeo
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)));
storeSearchTo in interface RGeo<V>args - - search conditions objectpublic RFuture<Long> storeSearchToAsync(String destName, GeoSearchArgs args)
RGeoAsync
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)));
storeSearchToAsync in interface RGeoAsync<V>args - - search conditions objectpublic long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
radiusStoreTo in interface RGeo<V>public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
radiusStoreToAsync in interface RGeoAsync<V>public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusStoreTo in interface RGeo<V>public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusStoreToAsync in interface RGeoAsync<V>public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit)
radiusStoreTo in interface RGeo<V>public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit)
radiusStoreToAsync in interface RGeoAsync<V>public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
radiusStoreTo in interface RGeo<V>public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count)
radiusStoreToAsync in interface RGeoAsync<V>public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusStoreTo in interface RGeo<V>public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusStoreToAsync in interface RGeoAsync<V>public long storeSortedSearchTo(String destName, GeoSearchArgs args)
RGeo
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)));
storeSortedSearchTo in interface RGeo<V>args - - search conditions objectpublic RFuture<Long> storeSortedSearchToAsync(String destName, GeoSearchArgs args)
RGeoAsync
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)));
storeSortedSearchToAsync in interface RGeoAsync<V>args - - search conditions objectpublic RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
radiusStoreSortedToAsync in interface RGeoAsync<V>public RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
radiusStoreSortedToAsync in interface RGeoAsync<V>public RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusStoreSortedToAsync in interface RGeoAsync<V>public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit)
radiusStoreSortedToAsync in interface RGeoAsync<V>public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count)
radiusStoreSortedToAsync in interface RGeoAsync<V>public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusStoreSortedToAsync in interface RGeoAsync<V>public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
radiusStoreSortedTo in interface RGeo<V>public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
radiusStoreSortedTo in interface RGeo<V>public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusStoreSortedTo in interface RGeo<V>public long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit)
radiusStoreSortedTo in interface RGeo<V>public long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
radiusStoreSortedTo in interface RGeo<V>public long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
radiusStoreSortedTo in interface RGeo<V>public boolean expire(long timeToLive,
TimeUnit timeUnit)
RExpirableexpire in interface RExpirabletimeToLive - - timeout before object will be deletedtimeUnit - - timeout time unittrue if the timeout was set and false if notpublic RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit)
RExpirableAsyncexpireAsync in interface RExpirableAsynctimeToLive - - timeout before object will be deletedtimeUnit - - timeout time unittrue if the timeout was set and false if notpublic boolean expireAt(long timestamp)
RExpirableRExpirable.expire(Instant) insteadexpireAt in interface RExpirabletimestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if notpublic RFuture<Boolean> expireAtAsync(long timestamp)
RExpirableAsyncRExpirableAsync.expireAsync(Instant) insteadexpireAtAsync in interface RExpirableAsynctimestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if notpublic boolean expire(Instant instant)
RExpirableexpire in interface RExpirableinstant - - expire datetrue if the timeout was set and false if notpublic RFuture<Boolean> expireAsync(Instant instant)
RExpirableAsyncexpireAsync in interface RExpirableAsyncinstant - - expire datetrue if the timeout was set and false if notpublic boolean expireAt(Date timestamp)
RExpirableRExpirable.expire(Instant) insteadexpireAt in interface RExpirabletimestamp - - expire datetrue if the timeout was set and false if notpublic RFuture<Boolean> expireAtAsync(Date timestamp)
RExpirableAsyncRExpirableAsync.expireAsync(Instant) insteadexpireAtAsync in interface RExpirableAsynctimestamp - - expire datetrue if the timeout was set and false if notpublic boolean clearExpire()
RExpirableclearExpire in interface RExpirabletrue if timeout was removed
false if object does not exist or does not have an associated timeoutpublic RFuture<Boolean> clearExpireAsync()
RExpirableAsyncclearExpireAsync in interface RExpirableAsynctrue if the timeout was cleared and false if notpublic long remainTimeToLive()
RExpirableremainTimeToLive in interface RExpirablepublic RFuture<Long> remainTimeToLiveAsync()
RExpirableAsyncremainTimeToLiveAsync in interface RExpirableAsyncprotected RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit, String... keys)
Copyright © 2014–2021 Redisson. All rights reserved.