Package org.redisson.api
Interface RGeoReactive<V>
-
- Type Parameters:
V
- type of value
- All Superinterfaces:
<V>>
public interface RGeoReactive<V> extends RScoredSortedSetReactive<V>
Geospatial items holder. Reactive interface.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description reactor.core.publisher.Mono<>
add(double longitude, double latitude, V member)
Adds geospatial member.reactor.core.publisher.Mono<>
add(GeoEntry... entries)
Adds geospatial members.reactor.core.publisher.Mono<>
addIfExists(double longitude, double latitude, V member)
Adds geospatial member only if it's already exists.reactor.core.publisher.Mono<>
addIfExists(GeoEntry... entries)
Adds geospatial members only if it's already exists.reactor.core.publisher.Mono<>
dist(V firstMember, V secondMember, GeoUnit geoUnit)
Returns distance between members inGeoUnit
units.reactor.core.publisher.Mono<<>>
hash(V... members)
Returns 11 characters long Geohash string mapped by defined member.reactor.core.publisher.Mono<<V,GeoPosition>>
pos(V... members)
Returns geo-position mapped by defined member.reactor.core.publisher.Mono<<V>>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit)
Deprecated.reactor.core.publisher.Mono<<V>>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Deprecated.reactor.core.publisher.Mono<<V>>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Deprecated.reactor.core.publisher.Mono<<V>>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.reactor.core.publisher.Mono<<V>>
radius(V member, double radius, GeoUnit geoUnit)
Deprecated.reactor.core.publisher.Mono<<V>>
radius(V member, double radius, GeoUnit geoUnit, int count)
Deprecated.reactor.core.publisher.Mono<<V>>
radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Deprecated.reactor.core.publisher.Mono<<V>>
radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.reactor.core.publisher.Mono<>
destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
Deprecated.reactor.core.publisher.Mono<>
destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Deprecated.reactor.core.publisher.Mono<>
destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.reactor.core.publisher.Mono<>
destName, V member, double radius, GeoUnit geoUnit)
Deprecated.reactor.core.publisher.Mono<>
destName, V member, double radius, GeoUnit geoUnit, int count)
Deprecated.reactor.core.publisher.Mono<>
destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.reactor.core.publisher.Mono<>
destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
Deprecated.reactor.core.publisher.Mono<>
destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Deprecated.reactor.core.publisher.Mono<>
destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.reactor.core.publisher.Mono<>
destName, V member, double radius, GeoUnit geoUnit)
Deprecated.reactor.core.publisher.Mono<>
destName, V member, double radius, GeoUnit geoUnit, int count)
Deprecated.reactor.core.publisher.Mono<>
destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.reactor.core.publisher.Mono<<>>
radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit)
Deprecated.reactor.core.publisher.Mono<<>>
radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Deprecated.reactor.core.publisher.Mono<<>>
radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Deprecated.reactor.core.publisher.Mono<<>>
radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.reactor.core.publisher.Mono<<>>
radiusWithDistance(V member, double radius, GeoUnit geoUnit)
Deprecated.reactor.core.publisher.Mono<<>>
radiusWithDistance(V member, double radius, GeoUnit geoUnit, int count)
Deprecated.reactor.core.publisher.Mono<<>>
radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Deprecated.reactor.core.publisher.Mono<<>>
radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.reactor.core.publisher.Mono<<V,GeoPosition>>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit)
Deprecated.reactor.core.publisher.Mono<<V,GeoPosition>>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Deprecated.reactor.core.publisher.Mono<<V,GeoPosition>>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Deprecated.reactor.core.publisher.Mono<<V,GeoPosition>>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.reactor.core.publisher.Mono<<V,GeoPosition>>
radiusWithPosition(V member, double radius, GeoUnit geoUnit)
Deprecated.reactor.core.publisher.Mono<<V,GeoPosition>>
radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count)
Deprecated.reactor.core.publisher.Mono<<V,GeoPosition>>
radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Deprecated.reactor.core.publisher.Mono<<V,GeoPosition>>
radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.reactor.core.publisher.Mono<<V>>
search(GeoSearchArgs args)
Returns the members of a sorted set, which are within the borders of specified search conditions.reactor.core.publisher.Mono<<>>
searchWithDistance(GeoSearchArgs args)
Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.reactor.core.publisher.Mono<<V,GeoPosition>>
searchWithPosition(GeoSearchArgs args)
Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.reactor.core.publisher.Mono<>
destName, GeoSearchArgs args)
Finds the members of a sorted set, which are within the borders of specified search conditions.>
destName, GeoSearchArgs args)
Finds the members of a sorted set, which are within the borders of specified search conditions.reactor.core.publisher.Mono<>
tryAdd(double longitude, double latitude, V member)
Adds geospatial member only if has not been added before.reactor.core.publisher.Mono<>
tryAdd(GeoEntry... entries)
Adds geospatial members only if has not been added before.-
Methods inherited from interface org.redisson.api.RExpirableReactive
clearExpire, expire, expireAt, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RObjectReactive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
Methods inherited from interface org.redisson.api.RScoredSortedSetReactive
add, addAll, addAndGetRank, addAndGetRevRank, addAndGetRevRank, addIfExists, addIfGreater, addIfLess, addScore, addScoreAndGetRank, addScoreAndGetRevRank, contains, containsAll, count, diff, entryRange, entryRange, entryRange, entryRangeReversed, entryRangeReversed, entryRangeReversed, first, firstScore, getScore, getScore, intersection, intersection, intersection, intersection, iterator, iterator, iterator, iterator, last, lastScore, 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, takeFirst, takeFirstElements, takeLast, takeLastElements, tryAdd, union, union, union, union, valueRange, valueRange, valueRange, valueRangeReversed, valueRangeReversed, valueRangeReversed
-
Methods inherited from interface org.redisson.api.RSortableReactive
readSorted, readSorted, readSorted, readSorted, readSorted, readSorted, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo
-
-
-
-
Method Detail
-
add
reactor.core.publisher.Mono<> add(double longitude, double latitude, V member)
Adds geospatial member.- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectmember
- - object itself- Returns:
- number of elements added to the sorted set, not including elements already existing for which the score was updated
-
add
reactor.core.publisher.Mono<> add(GeoEntry... entries)
Adds geospatial members.- Parameters:
entries
- - objects- Returns:
- number of elements added to the sorted set, not including elements already existing for which the score was updated
-
addIfExists
reactor.core.publisher.Mono<> addIfExists(double longitude, double latitude, V member)
Adds geospatial member only if it's already exists.Requires Redis 6.2.0 and higher.
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectmember
- - object itself- Returns:
- number of elements added to the sorted set
-
addIfExists
reactor.core.publisher.Mono<> addIfExists(GeoEntry... entries)
Adds geospatial members only if it's already exists.Requires Redis 6.2.0 and higher.
- Parameters:
entries
- - objects- Returns:
- number of elements added to the sorted set
-
tryAdd
reactor.core.publisher.Mono<> tryAdd(double longitude, double latitude, V member)
Adds geospatial member only if has not been added before.Requires Redis 6.2.0 and higher.
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectmember
- - object itself- Returns:
- number of elements added to the sorted set
-
tryAdd
reactor.core.publisher.Mono<> tryAdd(GeoEntry... entries)
Adds geospatial members only if has not been added before.Requires Redis 6.2.0 and higher.
- Parameters:
entries
- - objects- Returns:
- number of elements added to the sorted set
-
dist
reactor.core.publisher.Mono<> dist(V firstMember, V secondMember, GeoUnit geoUnit)
Returns distance between members inGeoUnit
units.- Parameters:
firstMember
- - first objectsecondMember
- - second objectgeoUnit
- - geo unit- Returns:
- distance
-
hash
reactor.core.publisher.Mono<<>> hash(V... members)
Returns 11 characters long Geohash string mapped by defined member.- Parameters:
members
- - objects- Returns:
- hash mapped by object
-
pos
reactor.core.publisher.Mono<<V,GeoPosition>> pos(V... members)
Returns geo-position mapped by defined member.- Parameters:
members
- - objects- Returns:
- geo position mapped by object
-
search
reactor.core.publisher.Mono<<V>> search(GeoSearchArgs args)
Returns the members of a sorted set, which are within the borders of specified search conditions.Usage examples:
List objects = geo.search(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
List objects = geo.search(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
- Parameters:
args
- - search conditions object- Returns:
- list of memebers
-
radius
reactor.core.publisher.Mono<<V>> radius(double longitude, double latitude, double radius, GeoUnit geoUnit)
Deprecated.
-
radius
reactor.core.publisher.Mono<<V>> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Deprecated.
-
radius
reactor.core.publisher.Mono<<V>> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Deprecated.
-
radius
reactor.core.publisher.Mono<<V>> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.
-
searchWithDistance
reactor.core.publisher.Mono<<>> searchWithDistance(GeoSearchArgs args)
Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
Map objects = geo.searchWithDistance(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
Map objects = geo.searchWithDistance(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
- Parameters:
args
- - search conditions object- Returns:
- distance mapped by object
-
radiusWithDistance
reactor.core.publisher.Mono<<>> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit)
Deprecated.
-
radiusWithDistance
reactor.core.publisher.Mono<<>> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Deprecated.
-
radiusWithDistance
reactor.core.publisher.Mono<<>> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Deprecated.
-
radiusWithDistance
reactor.core.publisher.Mono<<>> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.
-
searchWithPosition
reactor.core.publisher.Mono<<V,GeoPosition>> searchWithPosition(GeoSearchArgs args)
Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
Map objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
Map objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
- Parameters:
args
- - search conditions object- Returns:
- position mapped by object
-
radiusWithPosition
reactor.core.publisher.Mono<<V,GeoPosition>> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit)
Deprecated.
-
radiusWithPosition
reactor.core.publisher.Mono<<V,GeoPosition>> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Deprecated.
-
radiusWithPosition
reactor.core.publisher.Mono<<V,GeoPosition>> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Deprecated.
-
radiusWithPosition
reactor.core.publisher.Mono<<V,GeoPosition>> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.
-
radius
reactor.core.publisher.Mono<<V>> radius(V member, double radius, GeoUnit geoUnit)
Deprecated.
-
radius
reactor.core.publisher.Mono<<V>> radius(V member, double radius, GeoUnit geoUnit, int count)
Deprecated.
-
radius
reactor.core.publisher.Mono<<V>> radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Deprecated.
-
radius
reactor.core.publisher.Mono<<V>> radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.
-
radiusWithDistance
reactor.core.publisher.Mono<<>> radiusWithDistance(V member, double radius, GeoUnit geoUnit)
Deprecated.
-
radiusWithDistance
reactor.core.publisher.Mono<<>> radiusWithDistance(V member, double radius, GeoUnit geoUnit, int count)
Deprecated.
-
radiusWithDistance
reactor.core.publisher.Mono<<>> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Deprecated.
-
radiusWithDistance
reactor.core.publisher.Mono<<>> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.
-
radiusWithPosition
reactor.core.publisher.Mono<<V,GeoPosition>> radiusWithPosition(V member, double radius, GeoUnit geoUnit)
Deprecated.
-
radiusWithPosition
reactor.core.publisher.Mono<<V,GeoPosition>> radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count)
Deprecated.
-
radiusWithPosition
reactor.core.publisher.Mono<<V,GeoPosition>> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
Deprecated.
-
radiusWithPosition
reactor.core.publisher.Mono<<V,GeoPosition>> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.
-
storeSearchTo
reactor.core.publisher.Mono<> storeSearchTo( destName, GeoSearchArgs args)
Finds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destName
.Usage examples:
long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
- Parameters:
args
- - search conditions object- Returns:
- length of result
-
radiusStoreTo
reactor.core.publisher.Mono<> radiusStoreTo( destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
Deprecated.
-
radiusStoreTo
reactor.core.publisher.Mono<> radiusStoreTo( destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Deprecated.
-
radiusStoreTo
reactor.core.publisher.Mono<> radiusStoreTo( destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.
-
radiusStoreTo
reactor.core.publisher.Mono<> radiusStoreTo( destName, V member, double radius, GeoUnit geoUnit)
Deprecated.
-
radiusStoreTo
reactor.core.publisher.Mono<> radiusStoreTo( destName, V member, double radius, GeoUnit geoUnit, int count)
Deprecated.
-
radiusStoreTo
reactor.core.publisher.Mono<> radiusStoreTo( destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.
-
storeSortedSearchTo
> storeSortedSearchTo( destName, GeoSearchArgs args)
Finds the members of a sorted set, which are within the borders of specified search conditions.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)));
- Parameters:
args
- - search conditions object- Returns:
- length of result
-
radiusStoreSortedTo
reactor.core.publisher.Mono<> radiusStoreSortedTo( destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
Deprecated.
-
radiusStoreSortedTo
reactor.core.publisher.Mono<> radiusStoreSortedTo( destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
Deprecated.
-
radiusStoreSortedTo
reactor.core.publisher.Mono<> radiusStoreSortedTo( destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
Deprecated.
-
radiusStoreSortedTo
reactor.core.publisher.Mono<> radiusStoreSortedTo( destName, V member, double radius, GeoUnit geoUnit)
Deprecated.
-
radiusStoreSortedTo
reactor.core.publisher.Mono<> radiusStoreSortedTo( destName, V member, double radius, GeoUnit geoUnit, int count)
Deprecated.
-
-