Package io.quarkus.redis.datasource.geo
Class GeoSearchStoreArgs<V>
java.lang.Object
io.quarkus.redis.datasource.geo.GeoSearchStoreArgs<V>
- All Implemented Interfaces:
RedisCommandExtraArguments
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionany()
When ANY is provided the command will return as soon as enough matches are found, so the results may not be the ones closest to the specified point, but on the other hand, the effort invested by the server is significantly lower.UseASC
order (from small to large).Search inside circular area according to givenradius
.Search inside circular area according to givenradius
.count
(long count) By default all the matching items are returned.UseDESC
order (from large to small).fromMember
(V member) Use the position of the given existingmember
in the sorted set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
Constructor Details
-
GeoSearchStoreArgs
public GeoSearchStoreArgs()
-
-
Method Details
-
fromMember
Use the position of the given existingmember
in the sorted set.- Parameters:
member
- the member, must not benull
- Returns:
- the current
GeoSearchStoreArgs
-
byRadius
Search inside circular area according to givenradius
.- Parameters:
radius
- the radius valueunit
- the unit- Returns:
- the current
GeoSearchStoreArgs
-
byBox
Search inside circular area according to givenradius
.- Parameters:
width
- the width of the boxheight
- the height of the boxunit
- the unit- Returns:
- the current
GeoSearchStoreArgs
-
ascending
UseASC
order (from small to large).- Returns:
- the current
GeoSearchStoreArgs
-
descending
UseDESC
order (from large to small).- Returns:
- the current
GeoSearchStoreArgs
-
count
By default all the matching items are returned. It is possible to limit the results to the first N matching items by using theCOUNT <count>
option.- Parameters:
count
- the count value- Returns:
- the current
GeoSearchStoreArgs
-
any
When ANY is provided the command will return as soon as enough matches are found, so the results may not be the ones closest to the specified point, but on the other hand, the effort invested by the server is significantly lower.Using
ANY
requirescount
to be set.- Returns:
- the current
GeoSearchStoreArgs
-
toArgs
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Parameters:
codec
- an optional encoder to encode some of the values- Returns:
- the list of arguments.
-