1
1
/*
2
- * Copyright 2016 the original author or authors.
2
+ * Copyright 2016-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
15
15
*/
16
16
package org .springframework .data .redis .connection ;
17
17
18
+ import lombok .Data ;
19
+ import lombok .RequiredArgsConstructor ;
20
+
18
21
import java .util .LinkedHashSet ;
19
22
import java .util .List ;
20
23
import java .util .Map ;
28
31
import org .springframework .data .geo .Point ;
29
32
import org .springframework .util .Assert ;
30
33
31
- import lombok .Data ;
32
- import lombok .RequiredArgsConstructor ;
33
-
34
34
/**
35
35
* Geo-specific Redis commands.
36
36
*
37
37
* @author Ninad Divadkar
38
38
* @author Christoph Strobl
39
+ * @author Mark Paluch
39
40
* @since 1.8
40
41
*/
41
42
public interface RedisGeoCommands {
@@ -47,7 +48,7 @@ public interface RedisGeoCommands {
47
48
* @param point must not be {@literal null}.
48
49
* @param member must not be {@literal null}.
49
50
* @return Number of elements added.
50
- * @see <a href="http://redis.io/commands/geoadd">http://redis.io/commands/geoadd </a>
51
+ * @see <a href="http://redis.io/commands/geoadd">Redis Documentation: GEOADD </a>
51
52
*/
52
53
Long geoAdd (byte [] key , Point point , byte [] member );
53
54
@@ -57,7 +58,7 @@ public interface RedisGeoCommands {
57
58
* @param key must not be {@literal null}.
58
59
* @param location must not be {@literal null}.
59
60
* @return Number of elements added.
60
- * @see <a href="http://redis.io/commands/geoadd">http://redis.io/commands/geoadd </a>
61
+ * @see <a href="http://redis.io/commands/geoadd">Redis Documentation: GEOADD </a>
61
62
*/
62
63
Long geoAdd (byte [] key , GeoLocation <byte []> location );
63
64
@@ -67,7 +68,7 @@ public interface RedisGeoCommands {
67
68
* @param key must not be {@literal null}.
68
69
* @param memberCoordinateMap must not be {@literal null}.
69
70
* @return Number of elements added.
70
- * @see <a href="http://redis.io/commands/geoadd">http://redis.io/commands/geoadd </a>
71
+ * @see <a href="http://redis.io/commands/geoadd">Redis Documentation: GEOADD </a>
71
72
*/
72
73
Long geoAdd (byte [] key , Map <byte [], Point > memberCoordinateMap );
73
74
@@ -77,7 +78,7 @@ public interface RedisGeoCommands {
77
78
* @param key must not be {@literal null}.
78
79
* @param locations must not be {@literal null}.
79
80
* @return Number of elements added.
80
- * @see <a href="http://redis.io/commands/geoadd">http://redis.io/commands/geoadd </a>
81
+ * @see <a href="http://redis.io/commands/geoadd">Redis Documentation: GEOADD </a>
81
82
*/
82
83
Long geoAdd (byte [] key , Iterable <GeoLocation <byte []>> locations );
83
84
@@ -88,7 +89,7 @@ public interface RedisGeoCommands {
88
89
* @param member1 must not be {@literal null}.
89
90
* @param member2 must not be {@literal null}.
90
91
* @return can be {@literal null}.
91
- * @see <a href="http://redis.io/commands/geodist">http://redis.io/commands/geodist </a>
92
+ * @see <a href="http://redis.io/commands/geodist">Redis Documentation: GEODIST </a>
92
93
*/
93
94
Distance geoDist (byte [] key , byte [] member1 , byte [] member2 );
94
95
@@ -100,7 +101,7 @@ public interface RedisGeoCommands {
100
101
* @param member2 must not be {@literal null}.
101
102
* @param metric must not be {@literal null}.
102
103
* @return can be {@literal null}.
103
- * @see <a href="http://redis.io/commands/geodist">http://redis.io/commands/geodist </a>
104
+ * @see <a href="http://redis.io/commands/geodist">Redis Documentation: GEODIST </a>
104
105
*/
105
106
Distance geoDist (byte [] key , byte [] member1 , byte [] member2 , Metric metric );
106
107
@@ -110,7 +111,7 @@ public interface RedisGeoCommands {
110
111
* @param key must not be {@literal null}.
111
112
* @param members must not be {@literal null}.
112
113
* @return never {@literal null}.
113
- * @see <a href="http://redis.io/commands/geohash">http://redis.io/commands/geohash </a>
114
+ * @see <a href="http://redis.io/commands/geohash">Redis Documentation: GEOHASH </a>
114
115
*/
115
116
List <String > geoHash (byte [] key , byte []... members );
116
117
@@ -120,7 +121,7 @@ public interface RedisGeoCommands {
120
121
* @param key must not be {@literal null}.
121
122
* @param members must not be {@literal null}.
122
123
* @return never {@literal null}.
123
- * @see <a href="http://redis.io/commands/geopos">http://redis.io/commands/geopos </a>
124
+ * @see <a href="http://redis.io/commands/geopos">Redis Documentation: GEOPOS </a>
124
125
*/
125
126
List <Point > geoPos (byte [] key , byte []... members );
126
127
@@ -130,7 +131,7 @@ public interface RedisGeoCommands {
130
131
* @param key must not be {@literal null}.
131
132
* @param within must not be {@literal null}.
132
133
* @return never {@literal null}.
133
- * @see <a href="http://redis.io/commands/georadius">http://redis.io/commands/georadius </a>
134
+ * @see <a href="http://redis.io/commands/georadius">Redis Documentation: GEORADIUS </a>
134
135
*/
135
136
GeoResults <GeoLocation <byte []>> geoRadius (byte [] key , Circle within );
136
137
@@ -141,7 +142,7 @@ public interface RedisGeoCommands {
141
142
* @param within must not be {@literal null}.
142
143
* @param args must not be {@literal null}.
143
144
* @return never {@literal null}.
144
- * @see <a href="http://redis.io/commands/georadius">http://redis.io/commands/georadius </a>
145
+ * @see <a href="http://redis.io/commands/georadius">Redis Documentation: GEORADIUS </a>
145
146
*/
146
147
GeoResults <GeoLocation <byte []>> geoRadius (byte [] key , Circle within , GeoRadiusCommandArgs args );
147
148
@@ -153,7 +154,7 @@ public interface RedisGeoCommands {
153
154
* @param member must not be {@literal null}.
154
155
* @param radius
155
156
* @return never {@literal null}.
156
- * @see <a href="http://redis.io/commands/georadiusbymember">http://redis.io/commands/georadiusbymember </a>
157
+ * @see <a href="http://redis.io/commands/georadiusbymember">Redis Documentation: GEORADIUSBYMEMBER </a>
157
158
*/
158
159
GeoResults <GeoLocation <byte []>> geoRadiusByMember (byte [] key , byte [] member , double radius );
159
160
@@ -165,7 +166,7 @@ public interface RedisGeoCommands {
165
166
* @param member must not be {@literal null}.
166
167
* @param radius must not be {@literal null}.
167
168
* @return never {@literal null}.
168
- * @see <a href="http://redis.io/commands/georadiusbymember">http://redis.io/commands/georadiusbymember </a>
169
+ * @see <a href="http://redis.io/commands/georadiusbymember">Redis Documentation: GEORADIUSBYMEMBER </a>
169
170
*/
170
171
GeoResults <GeoLocation <byte []>> geoRadiusByMember (byte [] key , byte [] member , Distance radius );
171
172
@@ -178,7 +179,7 @@ public interface RedisGeoCommands {
178
179
* @param radius must not be {@literal null}.
179
180
* @param args must not be {@literal null}.
180
181
* @return never {@literal null}.
181
- * @see <a href="http://redis.io/commands/georadiusbymember">http://redis.io/commands/georadiusbymember </a>
182
+ * @see <a href="http://redis.io/commands/georadiusbymember">Redis Documentation: GEORADIUSBYMEMBER </a>
182
183
*/
183
184
GeoResults <GeoLocation <byte []>> geoRadiusByMember (byte [] key , byte [] member , Distance radius ,
184
185
GeoRadiusCommandArgs args );
@@ -189,6 +190,7 @@ GeoResults<GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, Dis
189
190
* @param key must not be {@literal null}.
190
191
* @param members must not be {@literal null}.
191
192
* @return Number of elements removed.
193
+ * @see <a href="http://redis.io/commands/zrem">Redis Documentation: ZREM</a>
192
194
*/
193
195
Long geoRemove (byte [] key , byte []... members );
194
196
0 commit comments