インターフェース RedisGeoCommands
- 既知のすべてのサブインターフェース:
DefaultedRedisClusterConnection, DefaultedRedisConnection, RedisClusterConnection, RedisCommands, RedisConnection, RedisConnectionUtils.RedisConnectionProxy, StringRedisConnection
- すべての既知の実装クラス:
AbstractRedisConnection, DefaultStringRedisConnection, JedisClusterConnection, JedisConnection, LettuceClusterConnection, LettuceConnection
@NullUnmarked
public interface RedisGeoCommands
地域固有の Redis コマンド。
- 導入:
- 1.8
- 作成者:
- Ninad Divadkar, Christoph Strobl, Mark Paluch, Yeonsu Kim
- 関連事項:
ネストされたクラスの概要
ネストされたクラス修飾子と型インターフェース説明static enumMetricは Redis でサポートされています。static interfaceRedisGeoCommandsで使用される引数。static class名前に関連付けられたPointを表すRedisGeoCommands.GeoLocation。static classRedisGeoCommandsで使用される追加の引数(count/sort/... など)。static classRedisGeoCommandsで使用される追加の引数(count/sort/... など)。static classRedisGeoCommandsで使用される追加の引数(count/sort/... など)。方法の概要
修飾子と型メソッド説明geoAdd(byte @NonNull[] key, @NonNull IterableSE<@NonNull RedisGeoCommands.GeoLocation<byte[]>> locations) キーにRedisGeoCommands.GeoLocationを追加します指定されたメンバー名を持つPointをキーに追加します。default LongSEgeoAdd(byte @NonNull[] key, @NonNull RedisGeoCommands.GeoLocation<byte[]> location) キーにRedisGeoCommands.GeoLocationを追加します。geoDist(byte @NonNull[] key, byte @NonNull[] member1, byte @NonNull[] member2) member1 と member2 の間でDistanceを取得します。geoDist(byte @NonNull[] key, byte @NonNull[] member1, byte @NonNull[] member2, @NonNull Metric metric) geoHash(byte @NonNull[] key, byte @NonNull[] @NonNull... members) 1 人以上のメンバーの位置のジオハッシュ表現を取得します。geoPos(byte @NonNull[] key, byte @NonNull[] @NonNull... members) 1 つ以上のメンバーの位置のPoint表現を取得します。GeoResults<RedisGeoCommands.GeoLocation<byte[]>> 指定されたCircleの境界内のメンバーを取得します。GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadius(byte @NonNull[] key, @NonNull Circle within, @NonNull RedisGeoCommands.GeoRadiusCommandArgs args) RedisGeoCommands.GeoRadiusCommandArgsを適用して、特定のCircleの境界内のメンバーを取得します。default GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte @NonNull[] key, byte @NonNull[] member, double radius) メンバーの座標と指定された半径によって定義された円内のメンバーを取得します。GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte @NonNull[] key, byte @NonNull[] member, @NonNull Distance radius) メンバー座標によって定義され、Distanceが与えられた円内のメンバーを取得します。GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte @NonNull[] key, byte @NonNull[] member, @NonNull Distance radius, @NonNull RedisGeoCommands.GeoRadiusCommandArgs args) DistanceとRedisGeoCommands.GeoRadiusCommandArgsを指定して、メンバー座標で定義された円内のメンバーを取得します。geoRemove(byte @NonNull[] key, byte @NonNull[] @NonNull... members) メンバーを削除します。GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoSearch(byte @NonNull[] key, @NonNull GeoReference<byte[]> reference, @NonNull GeoShape predicate, @NonNull RedisGeoCommands.GeoSearchCommandArgs args) 指定されたshapeで指定されたエリアの境界内にあるジオセットのメンバーを返します。geoSearchStore(byte @NonNull[] destKey, byte @NonNull[] key, @NonNull GeoReference<byte[]> reference, @NonNull GeoShape predicate, @NonNull RedisGeoCommands.GeoSearchStoreCommandArgs args) 指定されたshapeで指定されたエリアの境界内にあるジオセットのメンバーをクエリし、結果をdestKeyに保存します。
方法の詳細
geoAdd
geoAdd
キーにRedisGeoCommands.GeoLocationを追加します。- パラメーター:
key- null であってはなりません。location- null であってはなりません。- 戻り値:
- 追加された要素の数。パイプライン / トランザクションで使用される場合は null。
- 関連事項:
geoAdd
geoAdd
LongSE geoAdd(byte @NonNull [] key, @NonNull IterableSE<@NonNull RedisGeoCommands.GeoLocation<byte[]>> locations) キーにRedisGeoCommands.GeoLocationを追加します- パラメーター:
key- null であってはなりません。locations- null であってはなりません。- 戻り値:
- 追加された要素の数。パイプライン / トランザクションで使用される場合は null。
- 関連事項:
geoDist
geoDist
geoHash
geoPos
geoRadius
GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadius(byte @NonNull [] key, @NonNull Circle within) 指定されたCircleの境界内のメンバーを取得します。- パラメーター:
key- null であってはなりません。within- null であってはなりません。- 戻り値:
- パイプライン / トランザクションで使用される場合は null。
- 関連事項:
geoRadius
GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadius(byte @NonNull [] key, @NonNull Circle within, @NonNull RedisGeoCommands.GeoRadiusCommandArgs args) RedisGeoCommands.GeoRadiusCommandArgsを適用して、特定のCircleの境界内のメンバーを取得します。- パラメーター:
key- null であってはなりません。within- null であってはなりません。args- null であってはなりません。- 戻り値:
- パイプライン / トランザクションで使用される場合は null。
- 関連事項:
geoRadiusByMember
default GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte @NonNull [] key, byte @NonNull [] member, double radius) メンバーの座標と指定された半径によって定義された円内のメンバーを取得します。- パラメーター:
key- null であってはなりません。member- null であってはなりません。radius-- 戻り値:
- パイプライン / トランザクションで使用される場合は null。
- 関連事項:
geoRadiusByMember
GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte @NonNull [] key, byte @NonNull [] member, @NonNull Distance radius) メンバー座標によって定義され、Distanceが与えられた円内のメンバーを取得します。- パラメーター:
key- null であってはなりません。member- null であってはなりません。radius- null であってはなりません。- 戻り値:
- パイプライン / トランザクションで使用される場合は null。
- 関連事項:
geoRadiusByMember
GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte @NonNull [] key, byte @NonNull [] member, @NonNull Distance radius, @NonNull RedisGeoCommands.GeoRadiusCommandArgs args) DistanceとRedisGeoCommands.GeoRadiusCommandArgsを指定して、メンバー座標で定義された円内のメンバーを取得します。- パラメーター:
key- null であってはなりません。member- null であってはなりません。radius- null であってはなりません。args- null であってはなりません。- 戻り値:
- パイプライン / トランザクションで使用される場合は null。
- 関連事項:
geoRemove
メンバーを削除します。- パラメーター:
key- null であってはなりません。members- null であってはなりません。- 戻り値:
- 削除された要素の数。パイプライン / トランザクションで使用される場合は null。
- 関連事項:
geoSearch
GeoResults<RedisGeoCommands.GeoLocation<byte[]>> geoSearch(byte @NonNull [] key, @NonNull GeoReference<byte[]> reference, @NonNull GeoShape predicate, @NonNull RedisGeoCommands.GeoSearchCommandArgs args) 指定されたshapeで指定されたエリアの境界内にあるジオセットのメンバーを返します。クエリの中心点はGeoReferenceによって提供されます。- パラメーター:
key- null であってはなりません。reference- null であってはなりません。predicate- null であってはなりません。args- null であってはなりません。- 戻り値:
- パイプライン / トランザクションで使用される場合は null。
- 導入:
- 2.6
- 関連事項:
geoSearchStore
LongSE geoSearchStore(byte @NonNull [] destKey, byte @NonNull [] key, @NonNull GeoReference<byte[]> reference, @NonNull GeoShape predicate, @NonNull RedisGeoCommands.GeoSearchStoreCommandArgs args) - パラメーター:
key- null であってはなりません。reference- null であってはなりません。predicate- null であってはなりません。args- null であってはなりません。- 戻り値:
- パイプライン / トランザクションで使用される場合は null。
- 導入:
- 2.6
- 関連事項: