V - type of valuepublic interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V>
RScoredSortedSet.Aggregate| Modifier and Type | Method and Description |
|---|---|
long |
add(double longitude,
double latitude,
V member)
Adds geospatial member.
|
long |
add(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.
|
Double |
dist(V firstMember,
V secondMember,
GeoUnit geoUnit)
Returns distance between members in
GeoUnit units. |
Map<V,String> |
hash(V... members)
Returns 11 characters long Geohash string mapped by defined member.
|
Map<V,GeoPosition> |
pos(V... members)
Returns geo-position mapped by defined member.
|
List<V> |
radius(double longitude,
double latitude,
double radius,
GeoUnit geoUnit)
Deprecated.
|
List<V> |
radius(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder)
Deprecated.
|
List<V> |
radius(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
List<V> |
radius(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
List<V> |
radius(V member,
double radius,
GeoUnit geoUnit)
Deprecated.
|
List<V> |
radius(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder)
Deprecated.
|
List<V> |
radius(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
List<V> |
radius(V member,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
long |
radiusStoreSortedTo(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit)
Deprecated.
|
long |
radiusStoreSortedTo(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
long |
radiusStoreSortedTo(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
long |
radiusStoreSortedTo(String destName,
V member,
double radius,
GeoUnit geoUnit)
Deprecated.
|
long |
radiusStoreSortedTo(String destName,
V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
long |
radiusStoreSortedTo(String destName,
V member,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
long |
radiusStoreTo(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit)
Deprecated.
|
long |
radiusStoreTo(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
long |
radiusStoreTo(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
long |
radiusStoreTo(String destName,
V member,
double radius,
GeoUnit geoUnit)
Deprecated.
|
long |
radiusStoreTo(String destName,
V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
long |
radiusStoreTo(String destName,
V member,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
Map<V,Double> |
radiusWithDistance(double longitude,
double latitude,
double radius,
GeoUnit geoUnit)
Deprecated.
|
Map<V,Double> |
radiusWithDistance(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder)
Deprecated.
|
Map<V,Double> |
radiusWithDistance(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
Map<V,Double> |
radiusWithDistance(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
Map<V,Double> |
radiusWithDistance(V member,
double radius,
GeoUnit geoUnit)
Deprecated.
|
Map<V,Double> |
radiusWithDistance(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder)
Deprecated.
|
Map<V,Double> |
radiusWithDistance(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
Map<V,Double> |
radiusWithDistance(V member,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
Map<V,GeoPosition> |
radiusWithPosition(double longitude,
double latitude,
double radius,
GeoUnit geoUnit)
Deprecated.
|
Map<V,GeoPosition> |
radiusWithPosition(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder)
Deprecated.
|
Map<V,GeoPosition> |
radiusWithPosition(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
Map<V,GeoPosition> |
radiusWithPosition(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
Map<V,GeoPosition> |
radiusWithPosition(V member,
double radius,
GeoUnit geoUnit)
Deprecated.
|
Map<V,GeoPosition> |
radiusWithPosition(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder)
Deprecated.
|
Map<V,GeoPosition> |
radiusWithPosition(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count)
Deprecated.
|
Map<V,GeoPosition> |
radiusWithPosition(V member,
double radius,
GeoUnit geoUnit,
int count)
Deprecated.
|
List<V> |
search(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.
|
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.
|
long |
storeSearchTo(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.
|
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.
|
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, 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, sortToaddAsync, addAsync, addIfExistsAsync, addIfExistsAsync, distAsync, hashAsync, posAsync, radiusAsync, radiusAsync, radiusAsync, radiusAsync, radiusAsync, radiusAsync, radiusAsync, radiusAsync, radiusStoreSortedToAsync, radiusStoreSortedToAsync, radiusStoreSortedToAsync, radiusStoreSortedToAsync, radiusStoreSortedToAsync, radiusStoreSortedToAsync, radiusStoreToAsync, radiusStoreToAsync, radiusStoreToAsync, radiusStoreToAsync, radiusStoreToAsync, radiusStoreToAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithDistanceAsync, radiusWithPositionAsync, radiusWithPositionAsync, radiusWithPositionAsync, radiusWithPositionAsync, radiusWithPositionAsync, radiusWithPositionAsync, radiusWithPositionAsync, radiusWithPositionAsync, searchAsync, searchWithDistanceAsync, searchWithPositionAsync, storeSearchToAsync, storeSortedSearchToAsync, tryAddAsync, tryAddAsyncaddAllAsync, 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, sortToAsynclong add(double longitude,
double latitude,
V member)
longitude - - longitude of objectlatitude - - latitude of objectmember - - object itselflong add(GeoEntry... entries)
entries - - objectsBoolean addIfExists(double longitude, double latitude, V member)
Requires Redis 6.2.0 and higher.
longitude - - longitude of objectlatitude - - latitude of objectmember - - object itselflong addIfExists(GeoEntry... entries)
Requires Redis 6.2.0 and higher.
entries - - objectsboolean tryAdd(double longitude,
double latitude,
V member)
Requires Redis 6.2.0 and higher.
longitude - - longitude of objectlatitude - - latitude of objectmember - - object itselflong tryAdd(GeoEntry... entries)
Requires Redis 6.2.0 and higher.
entries - - objectsDouble dist(V firstMember, V secondMember, GeoUnit geoUnit)
GeoUnit units.firstMember - - first objectsecondMember - - second objectgeoUnit - - geo unitMap<V,String> hash(V... members)
members - - objectsMap<V,GeoPosition> pos(V... members)
members - - objectsList<V> search(GeoSearchArgs args)
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.
args - - search conditions object@Deprecated List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit)
@Deprecated List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
@Deprecated List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
@Deprecated List<V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Map<V,Double> searchWithDistance(GeoSearchArgs args)
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.
args - - search conditions object@Deprecated Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit)
@Deprecated Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
@Deprecated Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
@Deprecated Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Map<V,GeoPosition> searchWithPosition(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 object@Deprecated Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit)
@Deprecated Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
@Deprecated Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
@Deprecated Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
@Deprecated List<V> radius(V member, double radius, GeoUnit geoUnit)
@Deprecated List<V> radius(V member, double radius, GeoUnit geoUnit, int count)
@Deprecated List<V> radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
@Deprecated List<V> radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
@Deprecated Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit)
@Deprecated Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, int count)
@Deprecated Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
@Deprecated Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
@Deprecated Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit)
@Deprecated Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count)
@Deprecated Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
@Deprecated Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
long storeSearchTo(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 long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
@Deprecated long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
@Deprecated long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
@Deprecated long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit)
@Deprecated long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
@Deprecated long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
long storeSortedSearchTo(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 object@Deprecated long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
@Deprecated long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
@Deprecated long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
@Deprecated long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit)
@Deprecated long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
@Deprecated long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Copyright © 2014–2021 Redisson. All rights reserved.