V
- valuepublic class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V>
RScoredSortedSet.Aggregate
codec, 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, valueRangeReversedAsync
addListener, addListenerAsync, copy, copyAsync, delete, deleteAsync, deleteAsync, dump, dumpAsync, encode, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getIdleTime, getIdleTimeAsync, getLockByMapKey, getLockByValue, getName, getName, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
forEach, iterator, spliterator
clearExpire, expire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
readSort, readSort, readSort, readSort, readSort, readSort, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo
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
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync
public 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)
RGeoAsync
public long add(double longitude, double latitude, V member)
RGeo
public long add(GeoEntry... entries)
RGeo
public RFuture<Long> addAsync(GeoEntry... entries)
RGeoAsync
public Boolean addIfExists(double longitude, double latitude, V member)
RGeo
Requires Redis 6.2.0 and higher.
addIfExists
in interface RGeo<V>
longitude
- - longitude of objectlatitude
- - latitude of objectmember
- - object itselfpublic long addIfExists(GeoEntry... entries)
RGeo
Requires Redis 6.2.0 and higher.
addIfExists
in interface RGeo<V>
entries
- - objectspublic RFuture<Boolean> addIfExistsAsync(double longitude, double latitude, V member)
RGeoAsync
Requires 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)
RGeoAsync
Requires Redis 6.2.0 and higher.
addIfExistsAsync
in interface RGeoAsync<V>
entries
- - objectspublic boolean tryAdd(double longitude, double latitude, V member)
RGeo
Requires Redis 6.2.0 and higher.
public long tryAdd(GeoEntry... entries)
RGeo
Requires Redis 6.2.0 and higher.
public RFuture<Boolean> tryAddAsync(double longitude, double latitude, V member)
RGeoAsync
Requires 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)
RGeoAsync
Requires Redis 6.2.0 and higher.
tryAddAsync
in interface RGeoAsync<V>
entries
- - objectspublic Double dist(V firstMember, V secondMember, GeoUnit geoUnit)
RGeo
GeoUnit
units.public RFuture<Double> distAsync(V firstMember, V secondMember, GeoUnit geoUnit)
RGeoAsync
GeoUnit
units.public Map<V,String> hash(V... members)
RGeo
public RFuture<Map<V,String>> hashAsync(V... members)
RGeoAsync
public Map<V,GeoPosition> pos(V... members)
RGeo
public RFuture<Map<V,GeoPosition>> posAsync(V... members)
RGeoAsync
public List<V> search(GeoSearchArgs args)
RGeo
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.
public RFuture<List<V>> searchAsync(GeoSearchArgs args)
RGeoAsync
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.
searchAsync
in interface RGeoAsync<V>
args
- - search conditions objectpublic Map<V,Double> searchWithDistance(GeoSearchArgs args)
RGeo
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.
searchWithDistance
in interface RGeo<V>
args
- - search conditions objectpublic RFuture<Map<V,Double>> searchWithDistanceAsync(GeoSearchArgs args)
RGeoAsync
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.
searchWithDistanceAsync
in interface RGeoAsync<V>
args
- - search conditions objectpublic Map<V,GeoPosition> searchWithPosition(GeoSearchArgs args)
RGeo
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.
searchWithPosition
in interface RGeo<V>
args
- - search conditions objectpublic RFuture<Map<V,GeoPosition>> searchWithPositionAsync(GeoSearchArgs args)
RGeoAsync
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.
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)
RExpirable
expire
in interface RExpirable
timeToLive
- - 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)
RExpirableAsync
expireAsync
in interface RExpirableAsync
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notpublic boolean expireAt(long timestamp)
RExpirable
RExpirable.expire(Instant)
insteadexpireAt
in interface RExpirable
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notpublic RFuture<Boolean> expireAtAsync(long timestamp)
RExpirableAsync
RExpirableAsync.expireAsync(Instant)
insteadexpireAtAsync
in interface RExpirableAsync
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notpublic boolean expire(Instant instant)
RExpirable
expire
in interface RExpirable
instant
- - expire datetrue
if the timeout was set and false
if notpublic RFuture<Boolean> expireAsync(Instant instant)
RExpirableAsync
expireAsync
in interface RExpirableAsync
instant
- - expire datetrue
if the timeout was set and false
if notpublic boolean expireAt(Date timestamp)
RExpirable
RExpirable.expire(Instant)
insteadexpireAt
in interface RExpirable
timestamp
- - expire datetrue
if the timeout was set and false
if notpublic RFuture<Boolean> expireAtAsync(Date timestamp)
RExpirableAsync
RExpirableAsync.expireAsync(Instant)
insteadexpireAtAsync
in interface RExpirableAsync
timestamp
- - expire datetrue
if the timeout was set and false
if notpublic boolean clearExpire()
RExpirable
clearExpire
in interface RExpirable
true
if timeout was removed
false
if object does not exist or does not have an associated timeoutpublic RFuture<Boolean> clearExpireAsync()
RExpirableAsync
clearExpireAsync
in interface RExpirableAsync
true
if the timeout was cleared and false
if notpublic long remainTimeToLive()
RExpirable
remainTimeToLive
in interface RExpirable
public RFuture<Long> remainTimeToLiveAsync()
RExpirableAsync
remainTimeToLiveAsync
in interface RExpirableAsync
protected RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit, String... keys)
Copyright © 2014–2021 Redisson. All rights reserved.