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
Constructors -
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.UseASCorder (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.UseDESCorder (from large to small).fromMember(V member) Use the position of the given existingmemberin the sorted set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
Constructor Details
-
GeoSearchStoreArgs
public GeoSearchStoreArgs()
-
-
Method Details
-
fromMember
Use the position of the given existingmemberin 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
UseASCorder (from small to large).- Returns:
- the current
GeoSearchStoreArgs
-
descending
UseDESCorder (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
ANYrequirescountto be set.- Returns:
- the current
GeoSearchStoreArgs
-
toArgs
- Specified by:
toArgsin interfaceRedisCommandExtraArguments- Parameters:
codec- an optional encoder to encode some of the values- Returns:
- the list of arguments.
-