Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_57962205
redisson
提交
d6795ae0
R
redisson
项目概览
weixin_57962205
/
redisson
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
redisson
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d6795ae0
编写于
12月 27, 2018
作者:
N
Nikita Koksharov
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into 3.0.0
上级
95576271
1b65896a
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
220 addition
and
28 deletion
+220
-28
redisson/src/main/java/org/redisson/RedissonGeo.java
redisson/src/main/java/org/redisson/RedissonGeo.java
+26
-26
redisson/src/main/java/org/redisson/api/RGeo.java
redisson/src/main/java/org/redisson/api/RGeo.java
+48
-0
redisson/src/main/java/org/redisson/api/RGeoAsync.java
redisson/src/main/java/org/redisson/api/RGeoAsync.java
+48
-0
redisson/src/main/java/org/redisson/api/RGeoReactive.java
redisson/src/main/java/org/redisson/api/RGeoReactive.java
+48
-0
redisson/src/main/java/org/redisson/api/RGeoRx.java
redisson/src/main/java/org/redisson/api/RGeoRx.java
+48
-0
redisson/src/main/java/org/redisson/client/protocol/RedisCommands.java
...main/java/org/redisson/client/protocol/RedisCommands.java
+2
-2
未找到文件。
redisson/src/main/java/org/redisson/RedissonGeo.java
浏览文件 @
d6795ae0
...
...
@@ -53,8 +53,8 @@ import org.redisson.connection.decoder.MapGetAllDecoder;
*/
public
class
RedissonGeo
<
V
>
extends
RedissonScoredSortedSet
<
V
>
implements
RGeo
<
V
>
{
private
final
MultiDecoder
<
Map
<
Object
,
Object
>>
postitionDecoder
=
new
ListMultiDecoder
(
new
CodecDecoder
(),
new
GeoPositionDecoder
(),
new
ObjectListReplayDecoder
(
ListMultiDecoder
.
RESET
),
new
GeoMapReplayDecoder
());
private
final
MultiDecoder
<
Map
<
Object
,
Object
>>
distanceDecoder
=
new
ListMultiDecoder
(
new
GeoDistanceDecoder
(),
new
GeoMapReplayDecoder
());
private
static
final
MultiDecoder
<
Map
<
Object
,
Object
>>
postitionDecoder
=
new
ListMultiDecoder
(
new
CodecDecoder
(),
new
GeoPositionDecoder
(),
new
ObjectListReplayDecoder
(
ListMultiDecoder
.
RESET
),
new
GeoMapReplayDecoder
());
private
static
final
MultiDecoder
<
Map
<
Object
,
Object
>>
distanceDecoder
=
new
ListMultiDecoder
(
new
GeoDistanceDecoder
(),
new
GeoMapReplayDecoder
());
public
RedissonGeo
(
CommandAsyncExecutor
connectionManager
,
String
name
,
RedissonClient
redisson
)
{
super
(
connectionManager
,
name
,
redisson
);
...
...
@@ -146,7 +146,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
List
<
V
>>
radiusAsync
(
double
longitude
,
double
latitude
,
double
radius
,
GeoUnit
geoUnit
)
{
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUS
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
radius
,
geoUnit
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUS
_RO
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
radius
,
geoUnit
);
}
@Override
...
...
@@ -156,7 +156,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
List
<
V
>>
radiusAsync
(
double
longitude
,
double
latitude
,
double
radius
,
GeoUnit
geoUnit
,
int
count
)
{
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUS
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUS
_RO
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
radius
,
geoUnit
,
"COUNT"
,
count
);
}
...
...
@@ -167,7 +167,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
List
<
V
>>
radiusAsync
(
double
longitude
,
double
latitude
,
double
radius
,
GeoUnit
geoUnit
,
GeoOrder
geoOrder
)
{
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUS
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUS
_RO
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
radius
,
geoUnit
,
geoOrder
);
}
...
...
@@ -178,7 +178,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
List
<
V
>>
radiusAsync
(
double
longitude
,
double
latitude
,
double
radius
,
GeoUnit
geoUnit
,
GeoOrder
geoOrder
,
int
count
)
{
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUS
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUS
_RO
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
radius
,
geoUnit
,
"COUNT"
,
count
,
geoOrder
);
}
...
...
@@ -189,7 +189,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
Double
>>
radiusWithDistanceAsync
(
double
longitude
,
double
latitude
,
double
radius
,
GeoUnit
geoUnit
)
{
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS"
,
distanceDecoder
);
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS
_RO
"
,
distanceDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
radius
,
geoUnit
,
"WITHDIST"
);
}
...
...
@@ -201,7 +201,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
Double
>>
radiusWithDistanceAsync
(
double
longitude
,
double
latitude
,
double
radius
,
GeoUnit
geoUnit
,
int
count
)
{
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS"
,
distanceDecoder
);
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS
_RO
"
,
distanceDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
radius
,
geoUnit
,
"WITHDIST"
,
"COUNT"
,
count
);
}
...
...
@@ -213,7 +213,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
Double
>>
radiusWithDistanceAsync
(
double
longitude
,
double
latitude
,
double
radius
,
GeoUnit
geoUnit
,
GeoOrder
geoOrder
)
{
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS"
,
distanceDecoder
);
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS
_RO
"
,
distanceDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
radius
,
geoUnit
,
"WITHDIST"
,
geoOrder
);
}
...
...
@@ -225,7 +225,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
Double
>>
radiusWithDistanceAsync
(
double
longitude
,
double
latitude
,
double
radius
,
GeoUnit
geoUnit
,
GeoOrder
geoOrder
,
int
count
)
{
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS"
,
distanceDecoder
);
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS
_RO
"
,
distanceDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
radius
,
geoUnit
,
"WITHDIST"
,
"COUNT"
,
count
,
geoOrder
);
}
...
...
@@ -237,7 +237,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
GeoPosition
>>
radiusWithPositionAsync
(
double
longitude
,
double
latitude
,
double
radius
,
GeoUnit
geoUnit
)
{
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS"
,
postitionDecoder
);
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS
_RO
"
,
postitionDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
radius
,
geoUnit
,
"WITHCOORD"
);
}
...
...
@@ -248,7 +248,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
GeoPosition
>>
radiusWithPositionAsync
(
double
longitude
,
double
latitude
,
double
radius
,
GeoUnit
geoUnit
,
int
count
)
{
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS"
,
postitionDecoder
);
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS
_RO
"
,
postitionDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
radius
,
geoUnit
,
"WITHCOORD"
,
"COUNT"
,
count
);
}
...
...
@@ -260,7 +260,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
GeoPosition
>>
radiusWithPositionAsync
(
double
longitude
,
double
latitude
,
double
radius
,
GeoUnit
geoUnit
,
GeoOrder
geoOrder
)
{
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS"
,
postitionDecoder
);
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS
_RO
"
,
postitionDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
radius
,
geoUnit
,
"WITHCOORD"
,
geoOrder
);
}
...
...
@@ -272,7 +272,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
GeoPosition
>>
radiusWithPositionAsync
(
double
longitude
,
double
latitude
,
double
radius
,
GeoUnit
geoUnit
,
GeoOrder
geoOrder
,
int
count
)
{
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS"
,
postitionDecoder
);
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUS
_RO
"
,
postitionDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
convert
(
longitude
),
convert
(
latitude
),
radius
,
geoUnit
,
"WITHCOORD"
,
"COUNT"
,
count
,
geoOrder
);
}
...
...
@@ -284,7 +284,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
List
<
V
>>
radiusAsync
(
V
member
,
double
radius
,
GeoUnit
geoUnit
)
{
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUSBYMEMBER
,
getName
(),
encode
(
member
),
radius
,
geoUnit
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUSBYMEMBER
_RO
,
getName
(),
encode
(
member
),
radius
,
geoUnit
);
}
@Override
...
...
@@ -294,7 +294,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
List
<
V
>>
radiusAsync
(
V
member
,
double
radius
,
GeoUnit
geoUnit
,
int
count
)
{
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUSBYMEMBER
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
"COUNT"
,
count
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUSBYMEMBER
_RO
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
"COUNT"
,
count
);
}
@Override
...
...
@@ -304,7 +304,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
List
<
V
>>
radiusAsync
(
V
member
,
double
radius
,
GeoUnit
geoUnit
,
GeoOrder
geoOrder
)
{
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUSBYMEMBER
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
geoOrder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUSBYMEMBER
_RO
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
geoOrder
);
}
@Override
...
...
@@ -314,7 +314,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
List
<
V
>>
radiusAsync
(
V
member
,
double
radius
,
GeoUnit
geoUnit
,
GeoOrder
geoOrder
,
int
count
)
{
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUSBYMEMBER
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
"COUNT"
,
count
,
geoOrder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
RedisCommands
.
GEORADIUSBYMEMBER
_RO
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
"COUNT"
,
count
,
geoOrder
);
}
@Override
...
...
@@ -324,7 +324,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
Double
>>
radiusWithDistanceAsync
(
V
member
,
double
radius
,
GeoUnit
geoUnit
)
{
RedisCommand
command
=
new
RedisCommand
(
"GEORADIUSBYMEMBER"
,
distanceDecoder
);
RedisCommand
command
=
new
RedisCommand
(
"GEORADIUSBYMEMBER
_RO
"
,
distanceDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
"WITHDIST"
);
}
...
...
@@ -335,7 +335,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
Double
>>
radiusWithDistanceAsync
(
V
member
,
double
radius
,
GeoUnit
geoUnit
,
int
count
)
{
RedisCommand
command
=
new
RedisCommand
(
"GEORADIUSBYMEMBER"
,
distanceDecoder
);
RedisCommand
command
=
new
RedisCommand
(
"GEORADIUSBYMEMBER
_RO
"
,
distanceDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
"WITHDIST"
,
"COUNT"
,
count
);
}
...
...
@@ -346,7 +346,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
Double
>>
radiusWithDistanceAsync
(
V
member
,
double
radius
,
GeoUnit
geoUnit
,
GeoOrder
geoOrder
)
{
RedisCommand
command
=
new
RedisCommand
(
"GEORADIUSBYMEMBER"
,
distanceDecoder
);
RedisCommand
command
=
new
RedisCommand
(
"GEORADIUSBYMEMBER
_RO
"
,
distanceDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
"WITHDIST"
,
geoOrder
);
}
...
...
@@ -357,7 +357,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
Double
>>
radiusWithDistanceAsync
(
V
member
,
double
radius
,
GeoUnit
geoUnit
,
GeoOrder
geoOrder
,
int
count
)
{
RedisCommand
command
=
new
RedisCommand
(
"GEORADIUSBYMEMBER"
,
distanceDecoder
);
RedisCommand
command
=
new
RedisCommand
(
"GEORADIUSBYMEMBER
_RO
"
,
distanceDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
"WITHDIST"
,
"COUNT"
,
count
,
geoOrder
);
}
...
...
@@ -368,7 +368,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
GeoPosition
>>
radiusWithPositionAsync
(
V
member
,
double
radius
,
GeoUnit
geoUnit
)
{
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUSBYMEMBER"
,
postitionDecoder
);
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUSBYMEMBER
_RO
"
,
postitionDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
"WITHCOORD"
);
}
...
...
@@ -379,7 +379,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
GeoPosition
>>
radiusWithPositionAsync
(
V
member
,
double
radius
,
GeoUnit
geoUnit
,
int
count
)
{
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUSBYMEMBER"
,
postitionDecoder
);
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUSBYMEMBER
_RO
"
,
postitionDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
"WITHCOORD"
,
"COUNT"
,
count
);
}
...
...
@@ -390,7 +390,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
GeoPosition
>>
radiusWithPositionAsync
(
V
member
,
double
radius
,
GeoUnit
geoUnit
,
GeoOrder
geoOrder
)
{
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUSBYMEMBER"
,
postitionDecoder
);
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUSBYMEMBER
_RO
"
,
postitionDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
"WITHCOORD"
,
geoOrder
);
}
...
...
@@ -401,7 +401,7 @@ public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V
@Override
public
RFuture
<
Map
<
V
,
GeoPosition
>>
radiusWithPositionAsync
(
V
member
,
double
radius
,
GeoUnit
geoUnit
,
GeoOrder
geoOrder
,
int
count
)
{
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUSBYMEMBER"
,
postitionDecoder
);
RedisCommand
<
Map
<
Object
,
Object
>>
command
=
new
RedisCommand
<
Map
<
Object
,
Object
>>(
"GEORADIUSBYMEMBER
_RO
"
,
postitionDecoder
);
return
commandExecutor
.
readAsync
(
getName
(),
codec
,
command
,
getName
(),
encode
(
member
),
radius
,
geoUnit
,
"WITHCOORD"
,
"COUNT"
,
count
,
geoOrder
);
}
...
...
redisson/src/main/java/org/redisson/api/RGeo.java
浏览文件 @
d6795ae0
...
...
@@ -80,6 +80,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -94,6 +96,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -109,6 +113,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -125,6 +131,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -142,6 +150,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -157,6 +167,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units and limited by count.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -173,6 +185,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -190,6 +204,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -207,6 +223,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -222,6 +240,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -238,6 +258,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -255,6 +277,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -271,6 +295,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -284,6 +310,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -298,6 +326,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -313,6 +343,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -329,6 +361,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -343,6 +377,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -358,6 +394,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -374,6 +412,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -390,6 +430,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -404,6 +446,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -419,6 +463,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -435,6 +481,8 @@ public interface RGeo<V> extends RScoredSortedSet<V>, RGeoAsync<V> {
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
redisson/src/main/java/org/redisson/api/RGeoAsync.java
浏览文件 @
d6795ae0
...
...
@@ -80,6 +80,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -94,6 +96,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -109,6 +113,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -125,6 +131,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -142,6 +150,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -157,6 +167,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units and limited by count.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -173,6 +185,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -190,6 +204,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -207,6 +223,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -222,6 +240,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -238,6 +258,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -255,6 +277,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -271,6 +295,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -284,6 +310,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -298,6 +326,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -312,6 +342,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -328,6 +360,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -342,6 +376,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -357,6 +393,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -373,6 +411,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -389,6 +429,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -403,6 +445,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -418,6 +462,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -434,6 +480,8 @@ public interface RGeoAsync<V> extends RScoredSortedSetAsync<V> {
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
redisson/src/main/java/org/redisson/api/RGeoReactive.java
浏览文件 @
d6795ae0
...
...
@@ -82,6 +82,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -96,6 +98,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -111,6 +115,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -127,6 +133,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -144,6 +152,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -159,6 +169,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units and limited by count.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -175,6 +187,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -192,6 +206,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -209,6 +225,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -224,6 +242,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -240,6 +260,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -257,6 +279,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -273,6 +297,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -286,6 +312,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -300,6 +328,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -314,6 +344,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -330,6 +362,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -344,6 +378,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -359,6 +395,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -375,6 +413,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -391,6 +431,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -405,6 +447,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -420,6 +464,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -436,6 +482,8 @@ public interface RGeoReactive<V> extends RScoredSortedSetReactive<V> {
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
redisson/src/main/java/org/redisson/api/RGeoRx.java
浏览文件 @
d6795ae0
...
...
@@ -82,6 +82,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -96,6 +98,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -111,6 +115,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -127,6 +133,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -144,6 +152,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -159,6 +169,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units and limited by count.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -175,6 +187,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -192,6 +206,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -209,6 +225,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -224,6 +242,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -240,6 +260,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the center location
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -257,6 +279,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* and the maximum distance from the center (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param longitude - longitude of object
* @param latitude - latitude of object
...
...
@@ -273,6 +297,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -286,6 +312,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -300,6 +328,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -314,6 +344,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -330,6 +362,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -344,6 +378,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -359,6 +395,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -375,6 +413,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -391,6 +431,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units.
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -405,6 +447,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -420,6 +464,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* borders of the area specified with the defined member location
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
@@ -436,6 +482,8 @@ public interface RGeoRx<V> extends RScoredSortedSetRx<V> {
* and the maximum distance from the defined member location (the radius)
* in <code>GeoUnit</code> units with <code>GeoOrder</code>
* and limited by count
* <p>
* Requires <b>Redis 3.2.10 and higher.</b>
*
* @param member - object
* @param radius - radius in geo units
...
...
redisson/src/main/java/org/redisson/client/protocol/RedisCommands.java
浏览文件 @
d6795ae0
...
...
@@ -91,8 +91,8 @@ public interface RedisCommands {
RedisStrictCommand
<
Long
>
GEOADD
=
new
RedisStrictCommand
<
Long
>(
"GEOADD"
);
RedisCommand
<
Double
>
GEODIST
=
new
RedisCommand
<
Double
>(
"GEODIST"
,
new
DoubleReplayConvertor
());
RedisCommand
<
List
<
Object
>>
GEORADIUS
=
new
RedisCommand
<
List
<
Object
>>(
"GEORADIUS
"
,
new
ObjectListReplayDecoder
<
Object
>());
RedisCommand
<
List
<
Object
>>
GEORADIUSBYMEMBER
=
new
RedisCommand
<
List
<
Object
>>(
"GEORADIUSBYMEMBER
"
,
new
ObjectListReplayDecoder
<
Object
>());
RedisCommand
<
List
<
Object
>>
GEORADIUS
_RO
=
new
RedisCommand
<
List
<
Object
>>(
"GEORADIUS_RO
"
,
new
ObjectListReplayDecoder
<
Object
>());
RedisCommand
<
List
<
Object
>>
GEORADIUSBYMEMBER
_RO
=
new
RedisCommand
<
List
<
Object
>>(
"GEORADIUSBYMEMBER_RO
"
,
new
ObjectListReplayDecoder
<
Object
>());
RedisCommand
<
Object
>
GEORADIUS_STORE
=
new
RedisCommand
<
Object
>(
"GEORADIUS"
,
new
Long2MultiDecoder
());
RedisCommand
<
Object
>
GEORADIUSBYMEMBER_STORE
=
new
RedisCommand
<
Object
>(
"GEORADIUSBYMEMBER"
,
new
Long2MultiDecoder
());
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录