V - type of valuepublic interface RGeoAsync<V> extends RScoredSortedSetAsync<V>
| Modifier and Type | Method and Description |
|---|---|
RFuture<Long> |
addAsync(double longitude,
double latitude,
V member)
Adds geospatial member.
|
RFuture<Long> |
addAsync(GeoEntry... entries)
Adds geospatial members.
|
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.
|
RFuture<Double> |
distAsync(V firstMember,
V secondMember,
GeoUnit geoUnit)
Returns distance between members in
GeoUnit units. |
RFuture<Map<V,String>> |
hashAsync(V... members)
Returns 11 characters Geohash string mapped by defined member.
|
RFuture<Map<V,GeoPosition>> |
posAsync(V... members)
Returns geo-position mapped by defined member.
|
RFuture<List<V>> |
radiusAsync(double longitude,
double latitude,
double radius,
GeoUnit geoUnit)
Deprecated.
|
RFuture<List<V>> |
radiusAsync(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder)
Deprecated.
|
RFuture<List<V>> |
radiusAsync(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
RFuture<List<V>> |
radiusAsync(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
RFuture<List<V>> |
radiusAsync(V member,
double radius,
GeoUnit geoUnit)
Deprecated.
|
RFuture<List<V>> |
radiusAsync(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder)
Deprecated.
|
RFuture<List<V>> |
radiusAsync(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
RFuture<List<V>> |
radiusAsync(V member,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
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) |
RFuture<Long> |
radiusStoreToAsync(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit)
Deprecated.
|
RFuture<Long> |
radiusStoreToAsync(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
RFuture<Long> |
radiusStoreToAsync(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
RFuture<Long> |
radiusStoreToAsync(String destName,
V member,
double radius,
GeoUnit geoUnit)
Deprecated.
|
RFuture<Long> |
radiusStoreToAsync(String destName,
V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
RFuture<Long> |
radiusStoreToAsync(String destName,
V member,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
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) |
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) |
RFuture<List<V>> |
searchAsync(GeoSearchArgs args)
Returns the members 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.
|
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.
|
RFuture<Long> |
storeSearchToAsync(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.
|
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.
|
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, 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, sortToAsyncRFuture<Long> addAsync(double longitude, double latitude, V member)
longitude - - longitude of objectlatitude - - latitude of objectmember - - object itselfRFuture<Long> addAsync(GeoEntry... entries)
entries - - objectsRFuture<Boolean> addIfExistsAsync(double longitude, double latitude, V member)
Requires Redis 6.2.0 and higher.
longitude - - longitude of objectlatitude - - latitude of objectmember - - object itselfRFuture<Long> addIfExistsAsync(GeoEntry... entries)
Requires Redis 6.2.0 and higher.
entries - - objectsRFuture<Boolean> tryAddAsync(double longitude, double latitude, V member)
Requires Redis 6.2.0 and higher.
longitude - - longitude of objectlatitude - - latitude of objectmember - - object itselfRFuture<Long> tryAddAsync(GeoEntry... entries)
Requires Redis 6.2.0 and higher.
entries - - objectsRFuture<Double> distAsync(V firstMember, V secondMember, GeoUnit geoUnit)
GeoUnit units.firstMember - - first objectsecondMember - - second objectgeoUnit - - geo unitRFuture<Map<V,String>> hashAsync(V... members)
members - - objectsRFuture<Map<V,GeoPosition>> posAsync(V... members)
members - - objectsRFuture<List<V>> searchAsync(GeoSearchArgs args)
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.
args - - search conditions object@Deprecated RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
@Deprecated RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
@Deprecated RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
@Deprecated RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RFuture<Map<V,Double>> searchWithDistanceAsync(GeoSearchArgs args)
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.
args - - search conditions objectRFuture<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,GeoPosition>> searchWithPositionAsync(GeoSearchArgs args)
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.
args - - search conditions objectRFuture<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)
@Deprecated RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit)
@Deprecated RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, int count)
@Deprecated RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
@Deprecated RFuture<List<V>> radiusAsync(V member, 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)
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)
RFuture<Long> storeSearchToAsync(String destName, GeoSearchArgs args)
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)));
args - - search conditions object@Deprecated RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
@Deprecated RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
@Deprecated RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
@Deprecated RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit)
@Deprecated RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count)
@Deprecated RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RFuture<Long> storeSortedSearchToAsync(String destName, GeoSearchArgs args)
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)));
args - - search conditions objectRFuture<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)
Copyright © 2014–2021 Redisson. All rights reserved.