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