Package io.quarkus.redis.datasource.geo
Class GeoSearchStoreArgs<V>
- java.lang.Object
-
- io.quarkus.redis.datasource.geo.GeoSearchStoreArgs<V>
-
- All Implemented Interfaces:
RedisCommandExtraArguments
public class GeoSearchStoreArgs<V> extends Object implements RedisCommandExtraArguments
-
-
Constructor Summary
Constructors Constructor Description GeoSearchStoreArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoSearchStoreArgs<V>
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.GeoSearchStoreArgs<V>
ascending()
UseASC
order (from small to large).GeoSearchStoreArgs<V>
byBox(double width, double height, GeoUnit unit)
Search inside circular area according to givenradius
.GeoSearchStoreArgs<V>
byRadius(double radius, GeoUnit unit)
Search inside circular area according to givenradius
.GeoSearchStoreArgs<V>
count(long count)
By default all the matching items are returned.GeoSearchStoreArgs<V>
descending()
UseDESC
order (from large to small).GeoSearchStoreArgs<V>
fromMember(V member)
Use the position of the given existingmember
in the sorted set.<T> List<String>
toArgs(Codec<T> codec)
-
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
-
-
-
-
Method Detail
-
fromMember
public GeoSearchStoreArgs<V> fromMember(V member)
Use the position of the given existingmember
in the sorted set.- Parameters:
member
- the member, must not benull
- Returns:
- the current
GeoSearchStoreArgs
-
byRadius
public GeoSearchStoreArgs<V> byRadius(double radius, GeoUnit unit)
Search inside circular area according to givenradius
.- Parameters:
radius
- the radius valueunit
- the unit- Returns:
- the current
GeoSearchStoreArgs
-
byBox
public GeoSearchStoreArgs<V> byBox(double width, double height, GeoUnit unit)
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
public GeoSearchStoreArgs<V> ascending()
UseASC
order (from small to large).- Returns:
- the current
GeoSearchStoreArgs
-
descending
public GeoSearchStoreArgs<V> descending()
UseDESC
order (from large to small).- Returns:
- the current
GeoSearchStoreArgs
-
count
public GeoSearchStoreArgs<V> count(long 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
public GeoSearchStoreArgs<V> 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
public <T> List<String> toArgs(Codec<T> codec)
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Parameters:
codec
- an optional encoder to encode some of the values- Returns:
- the list of arguments, encoded as a list of String.
-
-