Class ReactiveGeoCommandsImpl<K,V>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractRedisCommands
io.quarkus.redis.runtime.datasource.AbstractGeoCommands<K,V>
io.quarkus.redis.runtime.datasource.ReactiveGeoCommandsImpl<K,V>
- All Implemented Interfaces:
ReactiveGeoCommands<K,
,V> ReactiveRedisCommands
public class ReactiveGeoCommandsImpl<K,V>
extends AbstractGeoCommands<K,V>
implements ReactiveGeoCommands<K,V>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractGeoCommands
keyCodec, typeOfValue, valueCodec
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommands
marshaller, redis
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Boolean>
Execute the command GEOADD.io.smallrye.mutiny.Uni<Boolean>
geoadd
(K key, double longitude, double latitude, V member, GeoAddArgs args) Execute the command GEOADD.io.smallrye.mutiny.Uni<Integer>
geoadd
(K key, GeoAddArgs args, GeoItem<V>... items) Execute the command GEOADD.io.smallrye.mutiny.Uni<Boolean>
Execute the command GEOADD.io.smallrye.mutiny.Uni<Integer>
Execute the command GEOADD.io.smallrye.mutiny.Uni<Boolean>
geoadd
(K key, GeoItem<V> item, GeoAddArgs args) Execute the command GEOADD.io.smallrye.mutiny.Uni<Boolean>
geoadd
(K key, GeoPosition position, V member) Execute the command GEOADD.io.smallrye.mutiny.Uni<Double>
Execute the command GEODIST.Execute the command GEOHASH.io.smallrye.mutiny.Uni<List<GeoPosition>>
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.io.smallrye.mutiny.Uni<Long>
georadius
(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.io.smallrye.mutiny.Uni<Long>
georadius
(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.io.smallrye.mutiny.Uni<Long>
georadiusbymember
(K key, V member, double distance, GeoUnit unit, GeoRadiusStoreArgs<K> geoArgs) Execute the command GEORADIUSBYMEMBER.geosearch
(K key, GeoSearchArgs<V> geoArgs) Execute the command GEOSEARCH.io.smallrye.mutiny.Uni<Long>
geosearchstore
(K destination, K key, GeoSearchStoreArgs<V> args, boolean storeDist) Execute the command GEOSEARCHSTORE.Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractGeoCommands
_geoadd, _geoadd, _geoadd, _geodist, _geohash, _geopos, _georadius, _georadius, _georadius, _georadiusbymember, _georadiusbymember, _georadiusbymember, _geosearch, _geosearchstore, decodeAsListOfGeoValues, decodeDistance, decodeGeoPositions, decodeHashList, decodeRadiusSet
Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommands
execute, isMap
-
Field Details
-
DEFAULT_INSTANCE
-
-
Constructor Details
-
ReactiveGeoCommandsImpl
-
-
Method Details
-
getDataSource
- Specified by:
getDataSource
in interfaceReactiveRedisCommands
- Returns:
- the data source.
-
geoadd
Description copied from interface:ReactiveGeoCommands
Execute 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:
geoadd
in interfaceReactiveGeoCommands<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:
true
if the geospatial item was added,false
otherwise
-
geoadd
Description copied from interface:ReactiveGeoCommands
Execute 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:
geoadd
in interfaceReactiveGeoCommands<K,
V> - Parameters:
key
- the keyposition
- the geo positionmember
- the member to add.- Returns:
true
if the geospatial item was added,false
otherwise
-
geoadd
Description copied from interface:ReactiveGeoCommands
Execute 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:
geoadd
in interfaceReactiveGeoCommands<K,
V> - Parameters:
key
- the keyitem
- the item to add- Returns:
true
if the geospatial item was added,false
otherwise
-
geoadd
Description copied from interface:ReactiveGeoCommands
Execute 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:
geoadd
in interfaceReactiveGeoCommands<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:ReactiveGeoCommands
Execute 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:
geoadd
in interfaceReactiveGeoCommands<K,
V> - Parameters:
key
- the keyitem
- the item to addargs
- additional arguments.- Returns:
true
if the geospatial item was added,false
otherwise
-
geoadd
public io.smallrye.mutiny.Uni<Boolean> geoadd(K key, double longitude, double latitude, V member, GeoAddArgs args) Description copied from interface:ReactiveGeoCommands
Execute 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:
geoadd
in interfaceReactiveGeoCommands<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:
true
if the geospatial item was added,false
otherwise
-
geoadd
Description copied from interface:ReactiveGeoCommands
Execute 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:
geoadd
in interfaceReactiveGeoCommands<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
CH
option is specified, the number of elements that were changed (added or updated).
-
geodist
Description copied from interface:ReactiveGeoCommands
Execute the command GEODIST. Summary: Returns the distance between two members of a geospatial index Group: geo Requires Redis 3.2.0- Specified by:
geodist
in interfaceReactiveGeoCommands<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
empty
if one or both the elements are missing.
-
geohash
Description copied from interface:ReactiveGeoCommands
Execute the command GEOHASH. Summary: Returns members of a geospatial index as standard geohash strings Group: geo Requires Redis 3.2.0- Specified by:
geohash
in interfaceReactiveGeoCommands<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:ReactiveGeoCommands
Execute the command GEOPOS. Summary: Returns longitude and latitude of members of a geospatial index Group: geo Requires Redis 3.2.0- Specified by:
geopos
in interfaceReactiveGeoCommands<K,
V> - Parameters:
key
- the keymembers
- the items- Returns:
- The command returns an array where each element is a
GeoPosition
representing longitude and latitude (x,y) of each member name passed as argument to the command. Non-existing elements are reported asnull
elements.
-
georadius
public io.smallrye.mutiny.Uni<Set<V>> georadius(K key, double longitude, double latitude, double radius, GeoUnit unit) Description copied from interface:ReactiveGeoCommands
Execute the command GEORADIUS. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a poUniGroup: geo Requires Redis 3.2.0 - Specified by:
georadius
in interfaceReactiveGeoCommands<K,
V> - Parameters:
key
- the keylongitude
- the longitudelatitude
- the latituderadius
- the radiusunit
- the unit- Returns:
- the list of values.
-
georadius
public io.smallrye.mutiny.Uni<List<GeoValue<V>>> georadius(K key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusArgs geoArgs) Description copied from interface:ReactiveGeoCommands
Execute the command GEORADIUS. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a poUniGroup: geo Requires Redis 3.2.0 - Specified by:
georadius
in interfaceReactiveGeoCommands<K,
V> - Parameters:
key
- the keylongitude
- the longitudelatitude
- the latituderadius
- the radiusunit
- the unitgeoArgs
- the extra arguments of theGEORADIUS
command- Returns:
- the list of
GeoValue
. Only the field requested usinggeoArgs
are populated in the returnedGeoValue
.
-
georadius
public io.smallrye.mutiny.Uni<Long> georadius(K key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusStoreArgs<K> geoArgs) Description copied from interface:ReactiveGeoCommands
Execute the command GEORADIUS. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a poUni. It also stores the results in a sorted set. Group: geo Requires Redis 3.2.0 - Specified by:
georadius
in interfaceReactiveGeoCommands<K,
V> - Parameters:
key
- the keylongitude
- the longitudelatitude
- the latituderadius
- the radiusunit
- the unitgeoArgs
- the extraSTORE
arguments of theGEORADIUS
command- Returns:
- The number of items contained in the result written at the configured key.
-
georadius
public io.smallrye.mutiny.Uni<Set<V>> georadius(K key, GeoPosition position, double radius, GeoUnit unit) Description copied from interface:ReactiveGeoCommands
Execute the command GEORADIUS. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a poUniGroup: geo Requires Redis 3.2.0 - Specified by:
georadius
in interfaceReactiveGeoCommands<K,
V> - Parameters:
key
- the keyposition
- the positionradius
- the radiusunit
- the unit- Returns:
- the list of values.
-
georadius
public io.smallrye.mutiny.Uni<List<GeoValue<V>>> georadius(K key, GeoPosition position, double radius, GeoUnit unit, GeoRadiusArgs geoArgs) Description copied from interface:ReactiveGeoCommands
Execute the command GEORADIUS. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a poUniGroup: geo Requires Redis 3.2.0 - Specified by:
georadius
in interfaceReactiveGeoCommands<K,
V> - Parameters:
key
- the keyposition
- the positionradius
- the radiusunit
- the unitgeoArgs
- the extra arguments of theGEORADIUS
command- Returns:
- the list of
GeoValue
. Only the field requested usinggeoArgs
are populated in the returnedGeoValue
.
-
georadius
public io.smallrye.mutiny.Uni<Long> georadius(K key, GeoPosition position, double radius, GeoUnit unit, GeoRadiusStoreArgs<K> geoArgs) Description copied from interface:ReactiveGeoCommands
Execute the command GEORADIUS. Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a poUni. It also stores the results in a sorted set. Group: geo Requires Redis 3.2.0 - Specified by:
georadius
in interfaceReactiveGeoCommands<K,
V> - Parameters:
key
- the keyposition
- the positionradius
- the radiusunit
- the unitgeoArgs
- the extraSTORE
arguments of theGEORADIUS
command- Returns:
- The number of items contained in the result written at the configured key.
-
georadiusbymember
public io.smallrye.mutiny.Uni<Set<V>> georadiusbymember(K key, V member, double distance, GeoUnit unit) Description copied from interface:ReactiveGeoCommands
Execute 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:
georadiusbymember
in interfaceReactiveGeoCommands<K,
V> - Parameters:
key
- the keymember
- the memberdistance
- the max distance- Returns:
- the set of values
-
georadiusbymember
public io.smallrye.mutiny.Uni<List<GeoValue<V>>> georadiusbymember(K key, V member, double distance, GeoUnit unit, GeoRadiusArgs geoArgs) Description copied from interface:ReactiveGeoCommands
Execute 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:
georadiusbymember
in interfaceReactiveGeoCommands<K,
V> - Parameters:
key
- the keymember
- the memberdistance
- the max distancegeoArgs
- the extra arguments of theGEORADIUS
command- Returns:
- the list of
GeoValue
. Only the field requested usinggeoArgs
are populated in the returnedvalues
.
-
georadiusbymember
public io.smallrye.mutiny.Uni<Long> georadiusbymember(K key, V member, double distance, GeoUnit unit, GeoRadiusStoreArgs<K> geoArgs) Description copied from interface:ReactiveGeoCommands
Execute 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:
georadiusbymember
in interfaceReactiveGeoCommands<K,
V> - Parameters:
key
- the keymember
- the memberdistance
- the max distancegeoArgs
- the extra arguments of theGEORADIUS
command- Returns:
- The number of items contained in the result written at the configured key.
-
geosearch
Description copied from interface:ReactiveGeoCommands
Execute 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:
geosearch
in interfaceReactiveGeoCommands<K,
V> - Returns:
- the list of
GeoValue<V>>
. The populated data depends on the parameters configured inargs
.
-
geosearchstore
public io.smallrye.mutiny.Uni<Long> geosearchstore(K destination, K key, GeoSearchStoreArgs<V> args, boolean storeDist) Description copied from interface:ReactiveGeoCommands
Execute 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:
geosearchstore
in interfaceReactiveGeoCommands<K,
V> - Returns:
- the number of elements in the resulting set.
-