Class BlockingGeoCommandsImpl<K,V>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
io.quarkus.redis.runtime.datasource.BlockingGeoCommandsImpl<K,V>
- All Implemented Interfaces:
GeoCommands<K,,V> RedisCommands
public class BlockingGeoCommandsImpl<K,V>
extends AbstractRedisCommandGroup
implements GeoCommands<K,V>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
ds, timeout -
Constructor Summary
ConstructorsConstructorDescriptionBlockingGeoCommandsImpl(RedisDataSource ds, ReactiveGeoCommands<K, V> reactive, Duration timeout) -
Method Summary
Modifier and TypeMethodDescriptionbooleanExecute the command GEOADD.booleangeoadd(K key, double longitude, double latitude, V member, GeoAddArgs args) Execute the command GEOADD.intgeoadd(K key, GeoAddArgs args, GeoItem<V>... items) Execute the command GEOADD.booleanExecute the command GEOADD.intExecute the command GEOADD.booleangeoadd(K key, GeoItem<V> item, GeoAddArgs args) Execute the command GEOADD.booleangeoadd(K key, GeoPosition position, V member) Execute the command GEOADD.Execute the command GEODIST.Execute the command GEOHASH.Execute the command GEOPOS.Execute the command GEORADIUS.georadius(K key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusArgs geoArgs) Execute the command GEORADIUS.longgeoradius(K key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusStoreArgs<K> geoArgs) Execute the command GEORADIUS.georadius(K key, GeoPosition position, double radius, GeoUnit unit) Execute the command GEORADIUS.georadius(K key, GeoPosition position, double radius, GeoUnit unit, GeoRadiusArgs geoArgs) Execute the command GEORADIUS.longgeoradius(K key, GeoPosition position, double radius, GeoUnit unit, GeoRadiusStoreArgs<K> geoArgs) Execute the command GEORADIUS.georadiusbymember(K key, V member, double distance, GeoUnit unit) Execute the command GEORADIUSBYMEMBER.georadiusbymember(K key, V member, double distance, GeoUnit unit, GeoRadiusArgs geoArgs) Execute the command GEORADIUSBYMEMBER.longgeoradiusbymember(K key, V member, double distance, GeoUnit unit, GeoRadiusStoreArgs<K> geoArgs) Execute the command GEORADIUSBYMEMBER.geosearch(K key, GeoSearchArgs<V> args) Execute the command GEOSEARCH.longgeosearchstore(K destination, K key, GeoSearchStoreArgs<V> args, boolean storeDist) Execute the command GEOSEARCHSTORE.Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
getDataSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.RedisCommands
getDataSource
-
Constructor Details
-
BlockingGeoCommandsImpl
public BlockingGeoCommandsImpl(RedisDataSource ds, ReactiveGeoCommands<K, V> reactive, Duration timeout)
-
-
Method Details
-
geoadd
Description copied from interface:GeoCommandsExecute the command GEOADD. Summary: Add one geospatial item in the geospatial index represented using a sorted set Group: geo Requires Redis 3.2.0- Specified by:
geoaddin interfaceGeoCommands<K,V> - Parameters:
key- the keylongitude- the longitude coordinate according to WGS84.latitude- the latitude coordinate according to WGS84.member- the member to add.- Returns:
trueif the geospatial item was added,falseotherwise
-
geoadd
Description copied from interface:GeoCommandsExecute the command GEOADD. Summary: Add one geospatial item in the geospatial index represented using a sorted set Group: geo Requires Redis 3.2.0- Specified by:
geoaddin interfaceGeoCommands<K,V> - Parameters:
key- the keyposition- the geo positionmember- the member to add.- Returns:
trueif the geospatial item was added,falseotherwise
-
geoadd
Description copied from interface:GeoCommandsExecute the command GEOADD. Summary: Add one geospatial item in the geospatial index represented using a sorted set Group: geo Requires Redis 3.2.0- Specified by:
geoaddin interfaceGeoCommands<K,V> - Parameters:
key- the keyitem- the item to add- Returns:
trueif the geospatial item was added,falseotherwise
-
geoadd
Description copied from interface:GeoCommandsExecute the command GEOADD. Summary: Add one or more geospatial items in the geospatial index represented using a sorted set Group: geo Requires Redis 3.2.0- Specified by:
geoaddin interfaceGeoCommands<K,V> - Parameters:
key- the keyitems- the geo-item triplets containing the longitude, latitude and name / value- Returns:
- the number of elements added to the sorted set (excluding score updates).
-
geoadd
Description copied from interface:GeoCommandsExecute the command GEOADD. Summary: Add one geospatial item in the geospatial index represented using a sorted set Group: geo Requires Redis 3.2.0- Specified by:
geoaddin interfaceGeoCommands<K,V> - Parameters:
key- the keylongitude- the longitude coordinate according to WGS84.latitude- the latitude coordinate according to WGS84.member- the member to add.args- additional arguments.- Returns:
trueif the geospatial item was added,falseotherwise
-
geoadd
Description copied from interface:GeoCommandsExecute the command GEOADD. Summary: Add one geospatial item in the geospatial index represented using a sorted set Group: geo Requires Redis 3.2.0- Specified by:
geoaddin interfaceGeoCommands<K,V> - Parameters:
key- the keyitem- the item to addargs- additional arguments.- Returns:
trueif the geospatial item was added,falseotherwise
-
geoadd
Description copied from interface:GeoCommandsExecute the command GEOADD. Summary: Add one or more geospatial items in the geospatial index represented using a sorted set Group: geo Requires Redis 3.2.0- Specified by:
geoaddin interfaceGeoCommands<K,V> - Parameters:
key- the keyargs- additional arguments.items- the items containing the longitude, latitude and name / value- Returns:
- the number of elements added to the sorted set (excluding score updates). If the
CHoption is specified, the number of elements that were changed (added or updated).
-
geodist
Description copied from interface:GeoCommandsExecute the command GEODIST. Summary: Returns the distance between two members of a geospatial index Group: geo Requires Redis 3.2.0- Specified by:
geodistin interfaceGeoCommands<K,V> - Parameters:
key- the keyfrom- from memberto- to memberunit- the unit- Returns:
- The command returns the distance as a double in the specified unit, or
emptyif one or both the elements are missing.
-
geohash
Description copied from interface:GeoCommandsExecute the command GEOHASH. Summary: Returns members of a geospatial index as standard geohash strings Group: geo Requires Redis 3.2.0- Specified by:
geohashin interfaceGeoCommands<K,V> - Parameters:
key- the keymembers- the members- Returns:
- The command returns an array where each element is the Geohash corresponding to each member name passed as argument to the command.
-
geopos
Description copied from interface:GeoCommandsExecute the command GEOPOS. Summary: Returns longitude and latitude of members of a geospatial index Group: geo Requires Redis 3.2.0- Specified by:
geoposin interfaceGeoCommands<K,V> - Parameters:
key- the keymembers- the items- Returns:
- The command returns an array where each element is a
GeoPositionrepresenting longitude and latitude (x,y) of each member name passed as argument to the command. Non-existing elements are reported asnullelements.
-
georadius
Description copied from interface:GeoCommandsExecute the command GEORADIUS. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point Group: geo Requires Redis 3.2.0- Specified by:
georadiusin interfaceGeoCommands<K,V> - Parameters:
key- the keylongitude- the longitudelatitude- the latituderadius- the radiusunit- the unit- Returns:
- the list of values.
-
georadius
Description copied from interface:GeoCommandsExecute the command GEORADIUS. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point Group: geo Requires Redis 3.2.0- Specified by:
georadiusin interfaceGeoCommands<K,V> - Parameters:
key- the keyposition- the positionradius- the radiusunit- the unit- Returns:
- the list of values.
-
georadius
public List<GeoValue<V>> georadius(K key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusArgs geoArgs) Description copied from interface:GeoCommandsExecute the command GEORADIUS. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point Group: geo Requires Redis 3.2.0- Specified by:
georadiusin interfaceGeoCommands<K,V> - Parameters:
key- the keylongitude- the longitudelatitude- the latituderadius- the radiusunit- the unitgeoArgs- the extra arguments of theGEORADIUScommand- Returns:
- the list of
GeoValue. Only the field requested usinggeoArgsare populated in the returnedGeoValue.
-
georadius
public List<GeoValue<V>> georadius(K key, GeoPosition position, double radius, GeoUnit unit, GeoRadiusArgs geoArgs) Description copied from interface:GeoCommandsExecute the command GEORADIUS. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point Group: geo Requires Redis 3.2.0- Specified by:
georadiusin interfaceGeoCommands<K,V> - Parameters:
key- the keyposition- the positionradius- the radiusunit- the unitgeoArgs- the extra arguments of theGEORADIUScommand- Returns:
- the list of
GeoValue. Only the field requested usinggeoArgsare populated in the returnedGeoValue.
-
georadius
public long georadius(K key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusStoreArgs<K> geoArgs) Description copied from interface:GeoCommandsExecute the command GEORADIUS. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point. It also stores the results in a sorted set. Group: geo Requires Redis 3.2.0- Specified by:
georadiusin interfaceGeoCommands<K,V> - Parameters:
key- the keylongitude- the longitudelatitude- the latituderadius- the radiusunit- the unitgeoArgs- the extraSTOREarguments of theGEORADIUScommand- Returns:
- The number of items contained in the result written at the configured key.
-
georadius
public long georadius(K key, GeoPosition position, double radius, GeoUnit unit, GeoRadiusStoreArgs<K> geoArgs) Description copied from interface:GeoCommandsExecute the command GEORADIUS. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point. It also stores the results in a sorted set. Group: geo Requires Redis 3.2.0- Specified by:
georadiusin interfaceGeoCommands<K,V> - Parameters:
key- the keyposition- the positionradius- the radiusunit- the unitgeoArgs- the extraSTOREarguments of theGEORADIUScommand- Returns:
- The number of items contained in the result written at the configured key.
-
georadiusbymember
Description copied from interface:GeoCommandsExecute the command GEORADIUSBYMEMBER. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member Group: geo Requires Redis 3.2.0- Specified by:
georadiusbymemberin interfaceGeoCommands<K,V> - Parameters:
key- the keymember- the memberdistance- the max distance- Returns:
- the set of values
-
georadiusbymember
public List<GeoValue<V>> georadiusbymember(K key, V member, double distance, GeoUnit unit, GeoRadiusArgs geoArgs) Description copied from interface:GeoCommandsExecute the command GEORADIUSBYMEMBER. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member Group: geo Requires Redis 3.2.0- Specified by:
georadiusbymemberin interfaceGeoCommands<K,V> - Parameters:
key- the keymember- the memberdistance- the max distancegeoArgs- the extra arguments of theGEORADIUScommand- Returns:
- the list of
GeoValue. Only the field requested usinggeoArgsare populated in the returnedvalues.
-
georadiusbymember
public long georadiusbymember(K key, V member, double distance, GeoUnit unit, GeoRadiusStoreArgs<K> geoArgs) Description copied from interface:GeoCommandsExecute the command GEORADIUSBYMEMBER. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member. It also stores the results in a sorted set. Group: geo Requires Redis 3.2.0- Specified by:
georadiusbymemberin interfaceGeoCommands<K,V> - Parameters:
key- the keymember- the memberdistance- the max distancegeoArgs- the extra arguments of theGEORADIUScommand- Returns:
- The number of items contained in the result written at the configured key.
-
geosearch
Description copied from interface:GeoCommandsExecute the command GEOSEARCH. Summary: Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle. Group: geo Requires Redis 6.2.0- Specified by:
geosearchin interfaceGeoCommands<K,V> - Returns:
- the list of
GeoValue<V>>. The populated data depends on the parameters configured inargs.
-
geosearchstore
Description copied from interface:GeoCommandsExecute the command GEOSEARCHSTORE. Summary: Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle, and store the result in another key. Group: geo Requires Redis 6.2.0- Specified by:
geosearchstorein interfaceGeoCommands<K,V> - Returns:
- the number of elements in the resulting set.
-