public class RedisGeoMethods
extends io.toro.martini.redis.RedisBaseMethods
Constructor and Description |
---|
RedisGeoMethods(io.toro.martini.database.DataSourceManager dataSourceManager) |
Modifier and Type | Method and Description |
---|---|
static Long |
geoadd(String connectionName,
Object key,
double longitude,
double latitude,
Object member,
io.toro.gloop.engine.GloopExecutionContext context)
Single geo add.
|
static Long |
geoadd(String connectionName,
Object key,
io.toro.gloop.engine.GloopExecutionContext context,
Object... lngLatMember)
Multi geo add.
|
static Future<Long> |
geoaddAsync(String connectionName,
Object key,
double longitude,
double latitude,
Object member,
io.toro.gloop.engine.GloopExecutionContext context)
Asynchronously single geo add.
|
static Future<Long> |
geoaddAsync(String connectionName,
Object key,
io.toro.gloop.engine.GloopExecutionContext context,
Object... lngLatMember)
Asynchronously multi geo add.
|
static io.toro.gloop.object.property.GloopModel |
geoCoordToGloopModel(List<io.lettuce.core.GeoCoordinates> geoCoordinates) |
static Double |
geodist(String connectionName,
Object key,
Object from,
Object to,
String unit,
io.toro.gloop.engine.GloopExecutionContext context)
Retrieve distance between points
from and to . |
static Future<Double> |
geodistAsync(String connectionName,
Object key,
Object from,
Object to,
String unit,
io.toro.gloop.engine.GloopExecutionContext context)
Asynchronously retrieve distance between points
from and to . |
static List<io.lettuce.core.Value<String>> |
geohash(String connectionName,
Object key,
io.toro.gloop.engine.GloopExecutionContext context,
Object... members)
Retrieve Geohash strings representing the position of one or more elements in a sorted set value representing a
geospatial index.
|
static Future<List<io.lettuce.core.Value<String>>> |
geohashAsync(String connectionName,
Object key,
io.toro.gloop.engine.GloopExecutionContext context,
Object... members)
Asynchronously retrieve geohash strings representing the position of one or more elements in a sorted set value
representing a geospatial index.
|
static io.toro.gloop.object.property.GloopModel |
geopos(String connectionName,
Object key,
io.toro.gloop.engine.GloopExecutionContext context,
Object... members)
Get geo coordinates for the
members . |
static Future<List<io.lettuce.core.GeoCoordinates>> |
geoposAsync(String connectionName,
Object key,
io.toro.gloop.engine.GloopExecutionContext context,
Object... members)
Asynchronously get geo coordinates for the
members . |
static Set<Object> |
georadius(String connectionName,
Object key,
double longitude,
double latitude,
double distance,
String unit,
io.toro.gloop.engine.GloopExecutionContext context)
Retrieve members selected by distance with the center of
longitude and latitude . |
static io.toro.gloop.object.property.GloopModel |
georadius(String connectionName,
Object key,
double longitude,
double latitude,
double distance,
String unit,
io.toro.gloop.object.property.GloopModel geoArgs,
io.toro.gloop.engine.GloopExecutionContext context)
Retrieve members selected by distance with the center of
longitude and latitude . |
static Future<Set<Object>> |
georadiusAsync(String connectionName,
Object key,
double longitude,
double latitude,
double distance,
String unit,
io.toro.gloop.engine.GloopExecutionContext context)
Asynchronously retrieve members selected by distance with the center of
longitude and latitude . |
static Future<List<io.lettuce.core.GeoWithin<Object>>> |
georadiusAsync(String connectionName,
Object key,
double longitude,
double latitude,
double distance,
String unit,
io.toro.gloop.object.property.GloopModel geoArgs,
io.toro.gloop.engine.GloopExecutionContext context)
Asynchronously retrieve members selected by distance with the center of
longitude and latitude . |
static Future<Long> |
georadiusAsyncWithStoreArgs(String connectionName,
Object key,
double longitude,
double latitude,
double distance,
String unit,
io.toro.gloop.object.property.GloopModel geoWithin,
io.toro.gloop.engine.GloopExecutionContext context)
Asynchronously perform a
#georadius(String, Object, double, double, double, String, GloopModel) query and
store the results in a sorted set. |
static Set<Object> |
georadiusbymember(String connectionName,
Object key,
Object member,
double distance,
String unit,
io.toro.gloop.engine.GloopExecutionContext context)
Retrieve members selected by distance with the center of
member . |
static io.toro.gloop.object.property.GloopModel |
georadiusbymember(String connectionName,
Object key,
Object member,
double distance,
String unit,
io.toro.gloop.object.property.GloopModel geoArgs,
io.toro.gloop.engine.GloopExecutionContext context)
Retrieve members selected by distance with the center of
member . |
static Future<Set<Object>> |
georadiusbymemberAsync(String connectionName,
Object key,
Object member,
double distance,
String unit,
io.toro.gloop.engine.GloopExecutionContext context)
Asynchronously retrieve members selected by distance with the center of
member . |
static Future<List<io.lettuce.core.GeoWithin<Object>>> |
georadiusbymemberAsync(String connectionName,
Object key,
Object member,
double distance,
String unit,
io.toro.gloop.object.property.GloopModel geoArgs,
io.toro.gloop.engine.GloopExecutionContext context)
Asynchronously retrieve members selected by distance with the center of
member . |
static Future<Long> |
georadiusbymemberAsyncWithRadiusStoreArgs(String connectionName,
Object key,
Object member,
double distance,
String unit,
io.toro.gloop.object.property.GloopModel geoWithin,
io.toro.gloop.engine.GloopExecutionContext context)
Asynchronously perform a
#georadiusbymember(String, Object, Object, double, String, GloopModel) query and
store the results in a sorted set. |
static Long |
georadiusbymemberWithRadiusStoreArgs(String connectionName,
Object key,
Object member,
double distance,
String unit,
io.toro.gloop.object.property.GloopModel geoWithin,
io.toro.gloop.engine.GloopExecutionContext context)
Perform a
#georadiusbymember(String, Object, Object, double, String, GloopModel) query and store the
results in a sorted set. |
static Long |
georadiusWithStoreArgs(String connectionName,
Object key,
double longitude,
double latitude,
double distance,
String unit,
io.toro.gloop.object.property.GloopModel geoWithin,
io.toro.gloop.engine.GloopExecutionContext context)
Perform a
#georadius(String, Object, double, double, double, String, GloopModel) query and store the
results in a sorted set. |
static io.toro.gloop.object.property.GloopModel |
geoWithinListToGloopModel(io.toro.gloop.object.property.GloopModel geoArgs,
List<io.lettuce.core.GeoWithin<Object>> geoWithinList) |
@Autowired RedisGeoMethods(io.toro.martini.database.DataSourceManager dataSourceManager)
@GloopParameter(name="redisGeoaddOutput") public static Long geoadd(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) double longitude, @GloopParameter(allowNull=false) double latitude, @GloopParameter(allowNull=false) Object member, io.toro.gloop.engine.GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setlongitude
- the longitude coordinate according to WGS84latitude
- the latitude coordinate according to WGS84member
- the member to add@GloopParameter(name="redisGeoaddOutput") public static Long geoadd(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, io.toro.gloop.engine.GloopExecutionContext context, @GloopParameter(allowNull=false) Object... lngLatMember)
connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setlngLatMember
- triplets of double longitude, double latitude and V member@GloopParameter(name="redisFutureGeoaddOutput") public static Future<Long> geoaddAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, io.toro.gloop.engine.GloopExecutionContext context, @GloopParameter(allowNull=false) Object... lngLatMember)
connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setlngLatMember
- triplets of double longitude, double latitude and v member@GloopParameter(name="redisFutureGeoaddOutput") public static Future<Long> geoaddAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) double longitude, @GloopParameter(allowNull=false) double latitude, @GloopParameter(allowNull=false) Object member, io.toro.gloop.engine.GloopExecutionContext context)
connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setlongitude
- the longitude coordinate according to wGS84latitude
- the latitude coordinate according to wGS84member
- the member to add@GloopParameter(name="redisGeohashOutput") public static List<io.lettuce.core.Value<String>> geohash(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, io.toro.gloop.engine.GloopExecutionContext context, @GloopParameter(allowNull=false) Object... members)
connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setmembers
- the membersmembers
. Returns null if a member is not
found.@GloopParameter(name="redisFutureGeohashOutput") public static Future<List<io.lettuce.core.Value<String>>> geohashAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, io.toro.gloop.engine.GloopExecutionContext context, @GloopParameter(allowNull=false) Object... members)
connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setmembers
- the membersmembers
. returns null if a member is not
found.@GloopParameter(name="redisGeoradiusOutput") public static Set<Object> georadius(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) double longitude, @GloopParameter(allowNull=false) double latitude, @GloopParameter(allowNull=false) double distance, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, io.toro.gloop.engine.GloopExecutionContext context)
longitude
and latitude
.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setlongitude
- the longitude coordinate according to WGS84latitude
- the latitude coordinate according to WGS84distance
- radius distanceunit
- distance unit@GloopObjectParameter(value="output{\n geoWithinList[]{\n member:object:The member\n distance:double:The distance, may be {@literal null}\n geoHash:long:The geohash, may be {@literal null}\n coordinates{\n x:bigDecimal:Longitude\n y:bigDecimal:Latitude\n }\n }\n}") public static io.toro.gloop.object.property.GloopModel georadius(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) double longitude, @GloopParameter(allowNull=false) double latitude, @GloopParameter(allowNull=false) double distance, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, @GloopObjectParameter(value="geoArgs{\n withDistance:boolean:Request distance for results\n withCoordinates:boolean:Request coordinates for results\n withHash:boolean:Request geohash for results\n count:long:Limit results to {@code count} entries\n sort::Sort results:::[\'asc\',\'desc\',\'none\']\n}") io.toro.gloop.object.property.GloopModel geoArgs, io.toro.gloop.engine.GloopExecutionContext context)
longitude
and latitude
.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setlongitude
- the longitude coordinate according to WGS84latitude
- the latitude coordinate according to WGS84distance
- radius distanceunit
- distance unitgeoArgs
- args to control the resultGeoWithin
contains only fields which were requested by GeoArgs
@GloopParameter(name="redisFutureGeoradiusOutput") public static Future<Set<Object>> georadiusAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) double longitude, @GloopParameter(allowNull=false) double latitude, @GloopParameter(allowNull=false) double distance, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, io.toro.gloop.engine.GloopExecutionContext context)
longitude
and latitude
.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setlongitude
- the longitude coordinate according to wGS84latitude
- the latitude coordinate according to wGS84distance
- radius distanceunit
- distance unit@GloopParameter(name="redisFutureGeoradiusOutput") public static Future<List<io.lettuce.core.GeoWithin<Object>>> georadiusAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) double longitude, @GloopParameter(allowNull=false) double latitude, @GloopParameter(allowNull=false) double distance, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, @GloopObjectParameter(value="geoArgs{\n withDistance:boolean:Request distance for results\n withCoordinates:boolean:Request coordinates for results\n withHash:boolean:Request geohash for results\n count:long:Limit results to {@code count} entries\n sort::Sort results:::[\'asc\',\'desc\',\'none\']\n}") io.toro.gloop.object.property.GloopModel geoArgs, io.toro.gloop.engine.GloopExecutionContext context)
longitude
and latitude
.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setlongitude
- the longitude coordinate according to wGS84latitude
- the latitude coordinate according to wGS84distance
- radius distanceunit
- distance unitgeoArgs
- args to control the resultGeoWithin
contains only fields which were requested by GeoArgs
@GloopParameter(name="redisGeoradiusOutput") public static Long georadiusWithStoreArgs(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) double longitude, @GloopParameter(allowNull=false) double latitude, @GloopParameter(allowNull=false) double distance, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, @GloopObjectParameter(value="geoWithin{\n storeKey:object:Store the resulting members with their location in the new Geo set {@code storeKey}. Cannot be used together with{@link #withStoreDist(Object)}\n storeDistKey:object:Store the resulting members with their distance in the sorted set {@code storeKey}. Cannot be used together with {@link #withStore(Object)}\n count:long:Limit results to {@code count} entries\n sort::How to sort the results:::[\'asc\',\'desc\',\'none\']\n}") io.toro.gloop.object.property.GloopModel geoWithin, io.toro.gloop.engine.GloopExecutionContext context)
#georadius(String, Object, double, double, double, String, GloopModel)
query and store the
results in a sorted set.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setlongitude
- the longitude coordinate according to WGS84latitude
- the latitude coordinate according to WGS84distance
- radius distanceunit
- distance unitgeoWithin
- args to store either the resulting elements with their distance or the resulting
elements with their locations a sorted set.@GloopParameter(name="redisFutureGeoradiusOutput") public static Future<Long> georadiusAsyncWithStoreArgs(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) double longitude, @GloopParameter(allowNull=false) double latitude, @GloopParameter(allowNull=false) double distance, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, @GloopObjectParameter(value="geoWithin{\n storeKey:object:Store the resulting members with their location in the new Geo set {@code storeKey}. Cannot be used together with{@link #withStoreDist(Object)}\n storeDistKey:object:Store the resulting members with their distance in the sorted set {@code storeKey}. Cannot be used together with {@link #withStore(Object)}\n count:long:Limit results to {@code count} entries\n sort::How to sort the results:::[\'asc\',\'desc\',\'none\']\n}") io.toro.gloop.object.property.GloopModel geoWithin, io.toro.gloop.engine.GloopExecutionContext context)
#georadius(String, Object, double, double, double, String, GloopModel)
query and
store the results in a sorted set.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setlongitude
- the longitude coordinate according to wGS84latitude
- the latitude coordinate according to wGS84distance
- radius distanceunit
- distance unitgeoWithin
- args to store either the resulting elements with their distance or the resulting
elements with their locations a sorted set.@GloopParameter(name="redisGeoradiusbymemberOutput") public static Set<Object> georadiusbymember(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object member, @GloopParameter(allowNull=false) double distance, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, io.toro.gloop.engine.GloopExecutionContext context)
member
. The member itself is always contained in
the results.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setmember
- reference memberdistance
- radius distanceunit
- distance unit@GloopObjectParameter(value="output{\n geoWithinList[]{\n member:object:The member\n distance:double:The distance, may be {@literal null}\n geoHash:long:The geohash, may be {@literal null}\n coordinates{\n x:bigDecimal:Longitude\n y:bigDecimal:Latitude\n }\n }\n}") public static io.toro.gloop.object.property.GloopModel georadiusbymember(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object member, @GloopParameter(allowNull=false) double distance, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, @GloopObjectParameter(value="geoArgs{\n withDistance:boolean:Request distance for results\n withCoordinates:boolean:Request coordinates for results\n withHash:boolean:Request geohash for results\n count:long:Limit results to {@code count} entries\n sort::Sort results:::[\'asc\',\'desc\',\'none\']\n}") io.toro.gloop.object.property.GloopModel geoArgs, io.toro.gloop.engine.GloopExecutionContext context)
member
. The member itself is always contained in
the results.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setmember
- reference memberdistance
- radius distanceunit
- distance unitgeoArgs
- args to control the resultGeoWithin
contains only fields which were requested by GeoArgs
@GloopParameter(name="redisFutureGeoradiusbymemberOutput") public static Future<Set<Object>> georadiusbymemberAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object member, @GloopParameter(allowNull=false) double distance, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, io.toro.gloop.engine.GloopExecutionContext context)
member
. the member itself is
always contained in the results.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setmember
- reference memberdistance
- radius distanceunit
- distance unit@GloopParameter(name="redisFutureGeoradiusbymemberOutput") public static Future<List<io.lettuce.core.GeoWithin<Object>>> georadiusbymemberAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object member, @GloopParameter(allowNull=false) double distance, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, @GloopObjectParameter(value="geoArgs{\n withDistance:boolean:Request distance for results\n withCoordinates:boolean:Request coordinates for results\n withHash:boolean:Request geohash for results\n count:long:Limit results to {@code count} entries\n sort::Sort results:::[\'asc\',\'desc\',\'none\']\n}") io.toro.gloop.object.property.GloopModel geoArgs, io.toro.gloop.engine.GloopExecutionContext context)
member
. the member itself is
always contained in the results.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setmember
- reference memberdistance
- radius distanceunit
- distance unitgeoArgs
- args to control the resultGeoWithin
contains only fields which were requested by GeoArgs
@GloopParameter(name="redisGeoradiusbymemberOutput") public static Long georadiusbymemberWithRadiusStoreArgs(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object member, @GloopParameter(allowNull=false) double distance, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, @GloopObjectParameter(value="geoWithin{\n storeKey:object:Store the resulting members with their location in the new Geo set {@code storeKey}. Cannot be used together with{@link #withStoreDist(Object)}\n storeDistKey:object:Store the resulting members with their distance in the sorted set {@code storeKey}. Cannot be used together with {@link #withStore(Object)}\n count:long:Limit results to {@code count} entries\n sort::How to sort the results:::[\'asc\',\'desc\',\'none\']\n}") io.toro.gloop.object.property.GloopModel geoWithin, io.toro.gloop.engine.GloopExecutionContext context)
#georadiusbymember(String, Object, Object, double, String, GloopModel)
query and store the
results in a sorted set.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setmember
- reference memberdistance
- radius distanceunit
- distance unitgeoWithin
- args to store either the resulting elements with their distance or the resulting
elements with their locations a sorted set.@GloopParameter(name="redisFutureGeoradiusbymemberOutput") public static Future<Long> georadiusbymemberAsyncWithRadiusStoreArgs(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object member, @GloopParameter(allowNull=false) double distance, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, @GloopObjectParameter(value="geoWithin{\n storeKey:object:Store the resulting members with their location in the new Geo set {@code storeKey}. Cannot be used together with{@link #withStoreDist(Object)}\n storeDistKey:object:Store the resulting members with their distance in the sorted set {@code storeKey}. Cannot be used together with {@link #withStore(Object)}\n count:long:Limit results to {@code count} entries\n sort::How to sort the results:::[\'asc\',\'desc\',\'none\']\n}") io.toro.gloop.object.property.GloopModel geoWithin, io.toro.gloop.engine.GloopExecutionContext context)
#georadiusbymember(String, Object, Object, double, String, GloopModel)
query and
store the results in a sorted set.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setmember
- reference memberdistance
- radius distanceunit
- distance unitgeoWithin
- args to store either the resulting elements with their distance or the resulting
elements with their locations a sorted set.@GloopObjectParameter(value="output{\n coordinates[]{\n x:bigDecimal:The longitude, will not be {@literal null}\n y:bigDecimal:The latitude, will not be {@literal null}\n }\n}") public static io.toro.gloop.object.property.GloopModel geopos(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, io.toro.gloop.engine.GloopExecutionContext context, @GloopParameter(allowNull=false) Object... members)
members
.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setmembers
- the membersGeoCoordinates
s representing the x,y position of each element specified in the
arguments. For missing elements null is returned.@GloopParameter(name="redisFutureGeoposOutput") public static Future<List<io.lettuce.core.GeoCoordinates>> geoposAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, io.toro.gloop.engine.GloopExecutionContext context, @GloopParameter(allowNull=false) Object... members)
members
.connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setmembers
- the membersGeoCoordinates
s representing the x,y position of each element specified in the
arguments. for missing elements null is returned.@GloopParameter(name="redisGeodistOutput") public static Double geodist(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object from, @GloopParameter(allowNull=false) Object to, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, io.toro.gloop.engine.GloopExecutionContext context)
from
and to
. If one or more elements are missing null
is returned. Default in meters by, otherwise according to unit
connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setfrom
- from memberto
- to memberunit
- distance unitfrom
and to
. If one or more elements are missing null
is returned.@GloopParameter(name="redisFutureGeodistOutput") public static Future<Double> geodistAsync(@GloopParameter(allowNull=false) String connectionName, @GloopParameter(allowNull=false) Object key, @GloopParameter(allowNull=false) Object from, @GloopParameter(allowNull=false) Object to, @GloopParameter(allowNull=false,choices={"m","km","ft","mi"}) String unit, io.toro.gloop.engine.GloopExecutionContext context)
from
and to
. if one or more elements are missing
null is returned. default in meters by, otherwise according to unit
connectionName
- The Martini Runtime Redis connection pool namekey
- the key of the geo setfrom
- from memberto
- to memberunit
- distance unitfrom
and to
. if one or more elements are missing null
is returned.@GloopObjectParameter(value="output{\n geoWithinList[]{\n member:object:The member\n distance:double:The distance, may be {@literal null}\n geoHash:long:The geohash, may be {@literal null}\n coordinates{\n x:bigDecimal:Longitude\n y:bigDecimal:Latitude\n }\n }\n}") public static io.toro.gloop.object.property.GloopModel geoWithinListToGloopModel(@GloopObjectParameter(value="geoArgs{\n withDistance:boolean:Request distance for results\n withCoordinates:boolean:Request coordinates for results\n withHash:boolean:Request geohash for results\n count:long:Limit results to {@code count} entries\n sort::Sort results:::[\'asc\',\'desc\',\'none\']\n}") io.toro.gloop.object.property.GloopModel geoArgs, @GloopParameter(allowNull=false) List<io.lettuce.core.GeoWithin<Object>> geoWithinList)
@GloopObjectParameter(value="output{\n coordinates[]{\n x:bigDecimal:The longitude, will not be {@literal null}\n y:bigDecimal:The latitude, will not be {@literal null}\n }\n}") public static io.toro.gloop.object.property.GloopModel geoCoordToGloopModel(List<io.lettuce.core.GeoCoordinates> geoCoordinates)
Copyright © 2020. All rights reserved.