インターフェース ReactiveZSetOperations<K,V>
public interface ReactiveZSetOperations<K,V>
ソートされた (ZSet) コマンドに対するリアクティブな Redis 操作。
Reactive Streams が null
値の使用を禁止しているため、RedisElementReader.read(ByteBuffer)
が特定の要素に対して null
を返す場合、Mono<K>
または Flux<M>
を返すメソッドのストリームは InvalidDataAccessApiUsageException
で終了します。
- 導入:
- 2.0
- 作成者:
- Mark Paluch, Christoph Strobl, Andrey Shlykov
- 関連事項:
メソッドのサマリー
修飾子と型メソッド説明reactor.core.publisher.Mono<BooleanSE>
value
をkey
でソートされたセットに追加するか、score
がすでに存在する場合は更新します。reactor.core.publisher.Mono<LongSE>
addAll
(K key, CollectionSE<? extends ZSetOperations.TypedTuple<V>> tuples) tuples
をkey
でソートされたセットに追加するか、スコアがすでに存在する場合はそれらのスコアを更新します。reactor.core.publisher.Mono<LongSE>
min
とmax
の間のスコアで、ソートされたセット内の要素の数をカウントします。reactor.core.publisher.Mono<BooleanSE>
指定されたキーを削除します。reactor.core.publisher.Flux<V>
difference
(K key, CollectionSE<K> otherKeys) 差分ソートされたsets
。default reactor.core.publisher.Flux<V>
difference
(K key, K otherKey) 差分ソートされたsets
。reactor.core.publisher.Mono<LongSE>
differenceAndStore
(K key, CollectionSE<K> otherKeys, K destKey) sets
を差分ソートし、結果を宛先destKey
に格納します。default reactor.core.publisher.Mono<LongSE>
differenceAndStore
(K key, K otherKey, K destKey) sets
を差分ソートし、結果を宛先destKey
に格納します。reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
differenceWithScores
(K key, CollectionSE<K> otherKeys) 差分ソートされたsets
。default reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
differenceWithScores
(K key, K otherKey) 差分ソートされたsets
。reactor.core.publisher.Flux<V>
distinctRandomMembers
(K key, long count) key
に設定されているからcount
の個別のランダム要素を取得します。reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
distinctRandomMembersWithScore
(K key, long count) key
に設定されたスコアを使用して、count
の個別のランダム要素を取得します。reactor.core.publisher.Mono<DoubleSE>
incrementScore
(K key, V value, double delta) increment
でソートされたセットのvalue
で要素のスコアをインクリメントします。reactor.core.publisher.Flux<V>
intersect
(K key, CollectionSE<K> otherKeys) ソートされたsets
を交差させます。default reactor.core.publisher.Flux<V>
ソートされたsets
を交差させます。reactor.core.publisher.Mono<LongSE>
intersectAndStore
(K key, CollectionSE<K> otherKeys, K destKey) ソートされたセットをkey
とotherKeys
で交差させ、結果を宛先destKey
に格納します。default reactor.core.publisher.Mono<LongSE>
intersectAndStore
(K key, CollectionSE<K> otherKeys, K destKey, Aggregate aggregate) ソートされたセットをkey
とotherKeys
で交差させ、結果を宛先destKey
に格納します。reactor.core.publisher.Mono<LongSE>
intersectAndStore
(K key, CollectionSE<K> otherKeys, K destKey, Aggregate aggregate, Weights weights) ソートされたセットをkey
とotherKeys
で交差させ、結果を宛先destKey
に格納します。default reactor.core.publisher.Mono<LongSE>
intersectAndStore
(K key, K otherKey, K destKey) ソートされたセットをkey
とotherKey
で交差させ、結果を宛先destKey
に格納します。reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
intersectWithScores
(K key, CollectionSE<K> otherKeys) ソートされたsets
を交差させます。default reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
intersectWithScores
(K key, CollectionSE<K> otherKeys, Aggregate aggregate) key
とotherKeys
でソートされたセットを交差させます。reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
intersectWithScores
(K key, CollectionSE<K> otherKeys, Aggregate aggregate, Weights weights) ソートされたsets
を交差させます。default reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
intersectWithScores
(K key, K otherKey) ソートされたsets
を交差させます。reactor.core.publisher.Mono<LongSE>
辞書式順序を適用して、Range.getLowerBound()
とRange.getUpperBound()
の間の値でソートされたセット内の要素の数をカウントします。reactor.core.publisher.Mono<ZSetOperations.TypedTuple<V>>
key
でソートされたセットから、スコアが最も高い値を削除して返します。reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
key
でソートされたセットから、スコアが最も高いcount
値を削除して返します。reactor.core.publisher.Mono<ZSetOperations.TypedTuple<V>>
popMax
(K key, DurationSE timeout) key
でソートされたセットから、スコアが最も高い値を削除して返します。reactor.core.publisher.Mono<ZSetOperations.TypedTuple<V>>
key
でソートされたセットから、スコアが最も低い値を削除して返します。reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
key
でソートされたセットから、スコアが最も低いcount
値を削除して返します。reactor.core.publisher.Mono<ZSetOperations.TypedTuple<V>>
popMin
(K key, DurationSE timeout) key
でソートされたセットから、スコアが最も低い値を削除して返します。reactor.core.publisher.Mono<V>
randomMember
(K key) key
のセットからランダム要素を取得します。reactor.core.publisher.Flux<V>
randomMembers
(K key, long count) key
のセットからcount
ランダム要素を取得します。reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
randomMembersWithScore
(K key, long count) key
に設定されたスコアからcount
ランダム要素を取得します。reactor.core.publisher.Mono<ZSetOperations.TypedTuple<V>>
randomMemberWithScore
(K key) key
に設定されたスコアからランダム要素を取得します。reactor.core.publisher.Flux<V>
ソートされたセットからstart
とend
の間の要素を取得します。default reactor.core.publisher.Mono<LongSE>
rangeAndStoreByLex
(K srcKey, K dstKey, Range<StringSE> range) Range.getLowerBound()
とRange.getUpperBound()
の間の値を持つsrcKey
の ZSET からの辞書編集順序で、すべての要素をdstKey
に格納します。reactor.core.publisher.Mono<LongSE>
n 個の要素をdstKey
に格納します。ここで、n =Limit.getCount()
で、Limit.getOffset()
から始まり、Range.getLowerBound()
とRange.getUpperBound()
の間の値を持つsrcKey
の ZSET から辞書式順序で格納します。default reactor.core.publisher.Mono<LongSE>
rangeAndStoreByScore
(K srcKey, K dstKey, Range<DoubleSE> range) reactor.core.publisher.Mono<LongSE>
n 個の要素をdstKey
に格納します。ここで、n =Limit.getCount()
で、Limit.getOffset()
から開始し、スコアがRange.getLowerBound()
とRange.getUpperBound()
の間のsrcKey
で ZSET からスコア順に並べ替えます。reactor.core.publisher.Flux<V>
rangeByLex
(K key, Range<StringSE> range) reactor.core.publisher.Flux<V>
rangeByLex
(K key, Range<StringSE> range, Limit limit) Range.getLowerBound()
とRange.getUpperBound()
の間の値で、key
の ZSET から辞書式順序でLimit.getOffset()
から開始して、すべての要素 n 要素(n =Limit.getCount()
)を取得します。reactor.core.publisher.Flux<V>
rangeByScore
(K key, Range<DoubleSE> range) ソートされたセットからスコアがmin
とmax
の間にある要素を取得します。reactor.core.publisher.Flux<V>
rangeByScore
(K key, Range<DoubleSE> range, Limit limit) start
からend
の範囲の要素を取得します。スコアは、ソートされたセットからmin
とmax
の間にあります。reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
rangeByScoreWithScores
(K key, Range<DoubleSE> range) reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
rangeByScoreWithScores
(K key, Range<DoubleSE> range, Limit limit) reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
rangeWithScores
(K key, Range<LongSE> range) reactor.core.publisher.Mono<LongSE>
ソートされたセット内のvalue
を持つ要素のインデックスを決定します。reactor.core.publisher.Mono<LongSE>
ソートされたセットからvalues
を削除します。reactor.core.publisher.Mono<LongSE>
removeRange
(K key, Range<LongSE> range) key
でソートされたセットからstart
とend
の間の範囲の要素を削除します。reactor.core.publisher.Mono<LongSE>
removeRangeByLex
(K key, Range<StringSE> range) key
を使用して、ソートされたセットから範囲内の要素を削除します。reactor.core.publisher.Mono<LongSE>
removeRangeByScore
(K key, Range<DoubleSE> range) key
でソートされたセットからmin
とmax
の間のスコアを持つ要素を削除します。reactor.core.publisher.Flux<V>
reverseRange
(K key, Range<LongSE> range) 高から低の順に並べ替えられたセットから、start
からend
の範囲の要素を取得します。default reactor.core.publisher.Mono<LongSE>
reverseRangeAndStoreByLex
(K srcKey, K dstKey, Range<StringSE> range) Range.getLowerBound()
とRange.getUpperBound()
の間の値を持つsrcKey
の ZSET から逆辞書編集順序でdstKey
にすべての要素を格納します。reactor.core.publisher.Mono<LongSE>
n 個の要素をdstKey
に格納します。ここで、n =Limit.getCount()
で、Limit.getOffset()
から始まり、Range.getLowerBound()
とRange.getUpperBound()
の間の値を持つsrcKey
の ZSET から逆辞書編集順序で格納します。default reactor.core.publisher.Mono<LongSE>
reverseRangeAndStoreByScore
(K srcKey, K dstKey, Range<DoubleSE> range) Range.getLowerBound()
とRange.getUpperBound()
の間のスコアを持つsrcKey
の ZSET からのスコアによって逆順でdstKey
にすべての要素を格納します。reactor.core.publisher.Mono<LongSE>
n 個の要素をdstKey
に格納します。ここで、n =Limit.getCount()
で、Limit.getOffset()
から始まり、Range.getLowerBound()
とRange.getUpperBound()
の間のスコアを持つsrcKey
の ZSET からのスコアによって逆順で並べ替えます。reactor.core.publisher.Flux<V>
reverseRangeByLex
(K key, Range<StringSE> range) reactor.core.publisher.Flux<V>
reverseRangeByLex
(K key, Range<StringSE> range, Limit limit) Range.getLowerBound()
とRange.getUpperBound()
の間の値で、key
の ZSET から逆辞書式順序でLimit.getOffset()
から開始して、すべての要素 n 要素(n =Limit.getCount()
)を取得します。reactor.core.publisher.Flux<V>
reverseRangeByScore
(K key, Range<DoubleSE> range) スコアがmin
とmax
の間にある要素を、高いものから低いものへと並べ替えられたセットから取得します。reactor.core.publisher.Flux<V>
reverseRangeByScore
(K key, Range<DoubleSE> range, Limit limit) start
からend
の範囲の要素を取得します。スコアは、高 -> 低の順序で並べ替えられたセットからmin
とmax
の間にあります。reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
reverseRangeByScoreWithScores
(K key, Range<DoubleSE> range) reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
reverseRangeByScoreWithScores
(K key, Range<DoubleSE> range, Limit limit) reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
reverseRangeWithScores
(K key, Range<LongSE> range) reactor.core.publisher.Mono<LongSE>
reverseRank
(K key, ObjectSE o) 高から低のスコアが付けられたときに、ソートされたセット内のvalue
を持つ要素のインデックスを決定します。default reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
Flux
を使用して、key
でソートされたセットのエントリを反復処理します。reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
scan
(K key, ScanOptions options) reactor.core.publisher.Mono<DoubleSE>
キーkey
でソートされたセットからvalue
で要素のスコアを取得します。キーkey
でソートされたセットからvalues
で要素のスコアを取得します。reactor.core.publisher.Mono<LongSE>
指定されたkey
で保存されたソート済みセットの要素数を返します。reactor.core.publisher.Flux<V>
union
(K key, CollectionSE<K> otherKeys) ユニオンソートsets
。default reactor.core.publisher.Flux<V>
ユニオンソートsets
。reactor.core.publisher.Mono<LongSE>
unionAndStore
(K key, CollectionSE<K> otherKeys, K destKey) key
およびotherKeys
で集合をユニオンソートし、結果を宛先destKey
に格納します。default reactor.core.publisher.Mono<LongSE>
unionAndStore
(K key, CollectionSE<K> otherKeys, K destKey, Aggregate aggregate) key
およびotherKeys
で集合をユニオンソートし、結果を宛先destKey
に格納します。reactor.core.publisher.Mono<LongSE>
unionAndStore
(K key, CollectionSE<K> otherKeys, K destKey, Aggregate aggregate, Weights weights) key
およびotherKeys
で集合をユニオンソートし、結果を宛先destKey
に格納します。reactor.core.publisher.Mono<LongSE>
unionAndStore
(K key, K otherKey, K destKey) key
およびotherKeys
で集合をユニオンソートし、結果を宛先destKey
に格納します。reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
unionWithScores
(K key, CollectionSE<K> otherKeys) ユニオンソートsets
。default reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
unionWithScores
(K key, CollectionSE<K> otherKeys, Aggregate aggregate) ユニオンはkey
とotherKeys
でセットをソートしました。reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
unionWithScores
(K key, CollectionSE<K> otherKeys, Aggregate aggregate, Weights weights) ユニオンソートsets
。default reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>>
unionWithScores
(K key, K otherKey) ユニオンソートsets
。
メソッドの詳細
add
value
をkey
でソートされたセットに追加するか、score
がすでに存在する場合は更新します。- パラメーター:
key
- null であってはなりません。value
- 値。score
- スコア。- 戻り値:
- 関連事項:
addAll
reactor.core.publisher.Mono<LongSE> addAll(K key, CollectionSE<? extends ZSetOperations.TypedTuple<V>> tuples) tuples
をkey
でソートされたセットに追加するか、スコアがすでに存在する場合はそれらのスコアを更新します。- パラメーター:
key
- null であってはなりません。tuples
- スコア。- 戻り値:
- 関連事項:
remove
ソートされたセットからvalues
を削除します。削除された要素の数を返します。- パラメーター:
key
- null であってはなりません。values
- null であってはなりません。- 戻り値:
- 関連事項:
incrementScore
increment
でソートされたセットのvalue
で要素のスコアをインクリメントします。- パラメーター:
key
- null であってはなりません。value
- 値。delta
- 追加するデルタ。負の値になる可能性があります。- 戻り値:
- 関連事項:
randomMember
key
のセットからランダム要素を取得します。- パラメーター:
key
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
distinctRandomMembers
key
に設定されているからcount
の個別のランダム要素を取得します。- パラメーター:
key
- null であってはなりません。count
- 戻るメンバーの数。- 戻り値:
- 例外:
IllegalArgumentExceptionSE
- カウントが負の場合。- 導入:
- 2.6
- 関連事項:
randomMembers
key
のセットからcount
ランダム要素を取得します。- パラメーター:
key
- null であってはなりません。count
- 戻るメンバーの数。- 戻り値:
- 例外:
IllegalArgumentExceptionSE
- カウントが負の場合。- 導入:
- 2.6
- 関連事項:
randomMemberWithScore
key
に設定されたスコアからランダム要素を取得します。- パラメーター:
key
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
distinctRandomMembersWithScore
reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> distinctRandomMembersWithScore(K key, long count) key
に設定されたスコアを使用して、count
の個別のランダム要素を取得します。- パラメーター:
key
- null であってはなりません。count
- 戻るメンバーの数。- 戻り値:
- 例外:
IllegalArgumentExceptionSE
- カウントが負の場合。- 導入:
- 2.6
- 関連事項:
randomMembersWithScore
key
に設定されたスコアからcount
ランダム要素を取得します。- パラメーター:
key
- null であってはなりません。count
- 戻るメンバーの数。- 戻り値:
- 例外:
IllegalArgumentExceptionSE
- カウントが負の場合。- 導入:
- 2.6
- 関連事項:
rank
ソートされたセット内のvalue
を持つ要素のインデックスを決定します。- パラメーター:
key
- null であってはなりません。o
- 値。- 戻り値:
- 関連事項:
reverseRank
高から低のスコアが付けられたときに、ソートされたセット内のvalue
を持つ要素のインデックスを決定します。- パラメーター:
key
- null であってはなりません。o
- 値。- 戻り値:
- 関連事項:
range
ソートされたセットからstart
とend
の間の要素を取得します。- パラメーター:
key
- null であってはなりません。range
- null であってはなりません。- 戻り値:
- 関連事項:
rangeWithScores
reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> rangeWithScores(K key, Range<LongSE> range) - パラメーター:
key
- null であってはなりません。range
- null であってはなりません。- 戻り値:
- 関連事項:
rangeByScore
ソートされたセットからスコアがmin
とmax
の間にある要素を取得します。- パラメーター:
key
- null であってはなりません。range
- null であってはなりません。- 戻り値:
- 関連事項:
rangeByScoreWithScores
reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> rangeByScoreWithScores(K key, Range<DoubleSE> range) - パラメーター:
key
- null であってはなりません。range
- null であってはなりません。- 戻り値:
- 関連事項:
rangeByScore
start
からend
の範囲の要素を取得します。スコアは、ソートされたセットからmin
とmax
の間にあります。- パラメーター:
key
- null であってはなりません。range
-limit
-- 戻り値:
- 関連事項:
rangeByScoreWithScores
reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> rangeByScoreWithScores(K key, Range<DoubleSE> range, Limit limit) - パラメーター:
key
-range
-limit
-- 戻り値:
- 関連事項:
reverseRange
高から低の順に並べ替えられたセットから、start
からend
の範囲の要素を取得します。- パラメーター:
key
- null であってはなりません。range
-- 戻り値:
- 関連事項:
reverseRangeWithScores
reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> reverseRangeWithScores(K key, Range<LongSE> range) - パラメーター:
key
- null であってはなりません。range
-- 戻り値:
- 関連事項:
reverseRangeByScore
スコアがmin
とmax
の間にある要素を、高いものから低いものへと並べ替えられたセットから取得します。- パラメーター:
key
- null であってはなりません。range
-- 戻り値:
- 関連事項:
reverseRangeByScoreWithScores
reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> reverseRangeByScoreWithScores(K key, Range<DoubleSE> range) - パラメーター:
key
- null であってはなりません。range
-- 戻り値:
- 関連事項:
reverseRangeByScore
start
からend
の範囲の要素を取得します。スコアは、高 -> 低の順序で並べ替えられたセットからmin
とmax
の間にあります。- パラメーター:
key
- null であってはなりません。range
-limit
-- 戻り値:
- 関連事項:
reverseRangeByScoreWithScores
reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> reverseRangeByScoreWithScores(K key, Range<DoubleSE> range, Limit limit) - パラメーター:
key
- null であってはなりません。range
-limit
-- 戻り値:
- 関連事項:
rangeAndStoreByLex
default reactor.core.publisher.Mono<LongSE> rangeAndStoreByLex(K srcKey, K dstKey, Range<StringSE> range) Range.getLowerBound()
とRange.getUpperBound()
の間の値を持つsrcKey
の ZSET からの辞書編集順序で、すべての要素をdstKey
に格納します。- パラメーター:
srcKey
- null であってはなりません。dstKey
- null であってはなりません。range
- null であってはなりません。- 戻り値:
- 格納された要素の数。
- 導入:
- 3.0
- 関連事項:
rangeAndStoreByLex
reactor.core.publisher.Mono<LongSE> rangeAndStoreByLex(K srcKey, K dstKey, Range<StringSE> range, Limit limit) n 個の要素をdstKey
に格納します。ここで、n =Limit.getCount()
で、Limit.getOffset()
から始まり、Range.getLowerBound()
とRange.getUpperBound()
の間の値を持つsrcKey
の ZSET から辞書式順序で格納します。- パラメーター:
srcKey
- null であってはなりません。dstKey
- null であってはなりません。range
- null であってはなりません。limit
- null であってはなりません。- 戻り値:
- 格納された要素の数。
- 導入:
- 3.0
- 関連事項:
reverseRangeAndStoreByLex
default reactor.core.publisher.Mono<LongSE> reverseRangeAndStoreByLex(K srcKey, K dstKey, Range<StringSE> range) Range.getLowerBound()
とRange.getUpperBound()
の間の値を持つsrcKey
の ZSET から逆辞書編集順序でdstKey
にすべての要素を格納します。- パラメーター:
srcKey
- null であってはなりません。dstKey
- null であってはなりません。range
- null であってはなりません。- 戻り値:
- 格納された要素の数。
- 導入:
- 3.0
- 関連事項:
reverseRangeAndStoreByLex
reactor.core.publisher.Mono<LongSE> reverseRangeAndStoreByLex(K srcKey, K dstKey, Range<StringSE> range, Limit limit) n 個の要素をdstKey
に格納します。ここで、n =Limit.getCount()
で、Limit.getOffset()
から始まり、Range.getLowerBound()
とRange.getUpperBound()
の間の値を持つsrcKey
の ZSET から逆辞書編集順序で格納します。- パラメーター:
srcKey
- null であってはなりません。dstKey
- null であってはなりません。range
- null であってはなりません。limit
- null であってはなりません。- 戻り値:
- 格納された要素の数。
- 導入:
- 3.0
- 関連事項:
rangeAndStoreByScore
@Nullable default reactor.core.publisher.Mono<LongSE> rangeAndStoreByScore(K srcKey, K dstKey, Range<DoubleSE> range) - パラメーター:
srcKey
- null であってはなりません。dstKey
- null であってはなりません。range
- null であってはなりません。- 戻り値:
- 格納された要素の数。
- 導入:
- 3.0
- 関連事項:
rangeAndStoreByScore
reactor.core.publisher.Mono<LongSE> rangeAndStoreByScore(K srcKey, K dstKey, Range<DoubleSE> range, Limit limit) n 個の要素をdstKey
に格納します。ここで、n =Limit.getCount()
で、Limit.getOffset()
から開始し、スコアがRange.getLowerBound()
とRange.getUpperBound()
の間のsrcKey
で ZSET からスコア順に並べ替えます。- パラメーター:
srcKey
- null であってはなりません。dstKey
- null であってはなりません。range
- null であってはなりません。limit
- null であってはなりません。- 戻り値:
- 格納された要素の数。
- 導入:
- 3.0
- 関連事項:
reverseRangeAndStoreByScore
default reactor.core.publisher.Mono<LongSE> reverseRangeAndStoreByScore(K srcKey, K dstKey, Range<DoubleSE> range) Range.getLowerBound()
とRange.getUpperBound()
の間のスコアを持つsrcKey
の ZSET からのスコアによって逆順でdstKey
にすべての要素を格納します。- パラメーター:
srcKey
- null であってはなりません。dstKey
- null であってはなりません。range
- null であってはなりません。- 戻り値:
- 格納された要素の数。
- 導入:
- 3.0
- 関連事項:
reverseRangeAndStoreByScore
reactor.core.publisher.Mono<LongSE> reverseRangeAndStoreByScore(K srcKey, K dstKey, Range<DoubleSE> range, Limit limit) n 個の要素をdstKey
に格納します。ここで、n =Limit.getCount()
で、Limit.getOffset()
から始まり、Range.getLowerBound()
とRange.getUpperBound()
の間のスコアを持つsrcKey
の ZSET からのスコアによって逆順で並べ替えます。- パラメーター:
srcKey
- null であってはなりません。dstKey
- null であってはなりません。range
- null であってはなりません。limit
- null であってはなりません。- 戻り値:
- 格納された要素の数。
- 導入:
- 3.0
- 関連事項:
scan
Flux
を使用して、key
でソートされたセットのエントリを反復処理します。結果のFlux
はカーソルとして機能し、サブスクライバーが要求を通知する限り、ZSCAN
コマンド自体を発行します。- パラメーター:
key
- null であってはなりません。- 戻り値:
Flux
は値を 1 つずつ出力するか、存在しない場合はempty Flux
を出力します。- 例外:
IllegalArgumentExceptionSE
-key
が指定された場合は null です。- 導入:
- 2.1
- 関連事項:
scan
Flux
を使用して、ScanOptions
が指定されたkey
でソートされたセットのエントリを反復処理します。結果のFlux
はカーソルとして機能し、サブスクライバーが要求を通知する限り、ZSCAN
コマンド自体を発行します。- パラメーター:
key
- null であってはなりません。options
- null であってはなりません。代わりにScanOptions.NONE
を使用してください。- 戻り値:
Flux
は値を 1 つずつ出力するか、存在しない場合はempty Flux
を出力します。- 例外:
IllegalArgumentExceptionSE
- 必要な引数の 1 つが null の場合。- 導入:
- 2.1
- 関連事項:
count
min
とmax
の間のスコアで、ソートされたセット内の要素の数をカウントします。- パラメーター:
key
- null であってはなりません。range
-- 戻り値:
- 関連事項:
lexCount
辞書式順序を適用して、Range.getLowerBound()
とRange.getUpperBound()
の間の値でソートされたセット内の要素の数をカウントします。- パラメーター:
key
- null であってはなりません。range
- null であってはなりません- 戻り値:
- 導入:
- 2.4
- 関連事項:
popMin
key
でソートされたセットから、スコアが最も低い値を削除して返します。- パラメーター:
key
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
popMin
key
でソートされたセットから、スコアが最も低いcount
値を削除して返します。- パラメーター:
key
- null であってはなりません。count
- ポップする要素の数。- 戻り値:
- 導入:
- 2.6
- 関連事項:
popMin
key
でソートされたセットから、スコアが最も低い値を削除して返します。- パラメーター:
key
- null であってはなりません。timeout
-key
のリスト内のエントリが利用可能になるまで待機する最大期間。Duration.ZERO
SE 以上 {@link 1 second} である必要があり、null であってはなりません。ゼロのタイムアウトを使用すると、無期限に待機できます。0 ~ 1 秒の期間はサポートされていません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
popMax
key
でソートされたセットから、スコアが最も高い値を削除して返します。- パラメーター:
key
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
popMax
key
でソートされたセットから、スコアが最も高いcount
値を削除して返します。- パラメーター:
key
- null であってはなりません。count
- ポップする要素の数。- 戻り値:
- 導入:
- 2.6
- 関連事項:
popMax
key
でソートされたセットから、スコアが最も高い値を削除して返します。- パラメーター:
key
- null であってはなりません。timeout
-key
のリスト内のエントリが利用可能になるまで待機する最大期間。Duration.ZERO
SE 以上 {@link 1 second} である必要があり、null であってはなりません。ゼロのタイムアウトを使用すると、無期限に待機できます。0 ~ 1 秒の期間はサポートされていません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
size
指定されたkey
で保存されたソート済みセットの要素数を返します。- パラメーター:
key
-- 戻り値:
- 関連事項:
score
キーkey
でソートされたセットからvalue
で要素のスコアを取得します。- パラメーター:
key
- null であってはなりません。o
- 値。- 戻り値:
- 関連事項:
score
キーkey
でソートされたセットからvalues
で要素のスコアを取得します。- パラメーター:
key
- null であってはなりません。o
- 値。- 戻り値:
- 導入:
- 2.6
- 関連事項:
removeRange
key
でソートされたセットからstart
とend
の間の範囲の要素を削除します。- パラメーター:
key
- null であってはなりません。range
-- 戻り値:
- 関連事項:
removeRangeByLex
key
を使用して、ソートされたセットから範囲内の要素を削除します。- パラメーター:
key
- null であってはなりません。range
- null であってはなりません。- 戻り値:
- 数または削除された要素を出力する
Mono
。 - 導入:
- 2.5
- 関連事項:
removeRangeByScore
key
でソートされたセットからmin
とmax
の間のスコアを持つ要素を削除します。- パラメーター:
key
- null であってはなりません。range
-- 戻り値:
- 関連事項:
difference
差分ソートされたsets
。- パラメーター:
key
- null であってはなりません。otherKey
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
difference
差分ソートされたsets
。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
differenceWithScores
default reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> differenceWithScores(K key, K otherKey) 差分ソートされたsets
。- パラメーター:
key
- null であってはなりません。otherKey
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
differenceWithScores
reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> differenceWithScores(K key, CollectionSE<K> otherKeys) 差分ソートされたsets
。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
differenceAndStore
sets
を差分ソートし、結果を宛先destKey
に格納します。- パラメーター:
key
- null であってはなりません。otherKey
- null であってはなりません。destKey
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
differenceAndStore
sets
を差分ソートし、結果を宛先destKey
に格納します。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。destKey
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
intersect
ソートされたsets
を交差させます。- パラメーター:
key
- null であってはなりません。otherKey
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
intersect
ソートされたsets
を交差させます。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
intersectWithScores
default reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> intersectWithScores(K key, K otherKey) ソートされたsets
を交差させます。- パラメーター:
key
- null であってはなりません。otherKey
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
intersectWithScores
reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> intersectWithScores(K key, CollectionSE<K> otherKeys) ソートされたsets
を交差させます。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
intersectWithScores
default reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> intersectWithScores(K key, CollectionSE<K> otherKeys, Aggregate aggregate) key
とotherKeys
でソートされたセットを交差させます。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。aggregate
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
intersectWithScores
reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> intersectWithScores(K key, CollectionSE<K> otherKeys, Aggregate aggregate, Weights weights) ソートされたsets
を交差させます。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。aggregate
- null であってはなりません。weights
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
intersectAndStore
ソートされたセットをkey
とotherKey
で交差させ、結果を宛先destKey
に格納します。- パラメーター:
key
- null であってはなりません。otherKey
- null であってはなりません。destKey
- null であってはなりません。- 戻り値:
- 関連事項:
intersectAndStore
ソートされたセットをkey
とotherKeys
で交差させ、結果を宛先destKey
に格納します。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。destKey
- null であってはなりません。- 戻り値:
- 関連事項:
intersectAndStore
default reactor.core.publisher.Mono<LongSE> intersectAndStore(K key, CollectionSE<K> otherKeys, K destKey, Aggregate aggregate) ソートされたセットをkey
とotherKeys
で交差させ、結果を宛先destKey
に格納します。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。destKey
- null であってはなりません。aggregate
- null であってはなりません。- 戻り値:
- 導入:
- 2.1
- 関連事項:
intersectAndStore
reactor.core.publisher.Mono<LongSE> intersectAndStore(K key, CollectionSE<K> otherKeys, K destKey, Aggregate aggregate, Weights weights) ソートされたセットをkey
とotherKeys
で交差させ、結果を宛先destKey
に格納します。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。destKey
- null であってはなりません。aggregate
- null であってはなりません。weights
- null であってはなりません。- 戻り値:
- 導入:
- 2.1
- 関連事項:
union
ユニオンソートsets
。- パラメーター:
key
- null であってはなりません。otherKey
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
union
ユニオンソートsets
。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
unionWithScores
default reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> unionWithScores(K key, K otherKey) ユニオンソートsets
。- パラメーター:
key
- null であってはなりません。otherKey
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
unionWithScores
reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> unionWithScores(K key, CollectionSE<K> otherKeys) ユニオンソートsets
。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
unionWithScores
default reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> unionWithScores(K key, CollectionSE<K> otherKeys, Aggregate aggregate) ユニオンはkey
とotherKeys
でセットをソートしました。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。aggregate
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
unionWithScores
reactor.core.publisher.Flux<ZSetOperations.TypedTuple<V>> unionWithScores(K key, CollectionSE<K> otherKeys, Aggregate aggregate, Weights weights) ユニオンソートsets
。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。aggregate
- null であってはなりません。weights
- null であってはなりません。- 戻り値:
- 導入:
- 2.6
- 関連事項:
unionAndStore
key
およびotherKeys
で集合をユニオンソートし、結果を宛先destKey
に格納します。- パラメーター:
key
- null であってはなりません。otherKey
- null であってはなりません。destKey
- null であってはなりません。- 戻り値:
- 関連事項:
unionAndStore
key
およびotherKeys
で集合をユニオンソートし、結果を宛先destKey
に格納します。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。destKey
- null であってはなりません。- 戻り値:
- 関連事項:
unionAndStore
default reactor.core.publisher.Mono<LongSE> unionAndStore(K key, CollectionSE<K> otherKeys, K destKey, Aggregate aggregate) key
およびotherKeys
で集合をユニオンソートし、結果を宛先destKey
に格納します。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。destKey
- null であってはなりません。aggregate
- null であってはなりません。- 戻り値:
- 導入:
- 2.1
- 関連事項:
unionAndStore
reactor.core.publisher.Mono<LongSE> unionAndStore(K key, CollectionSE<K> otherKeys, K destKey, Aggregate aggregate, Weights weights) key
およびotherKeys
で集合をユニオンソートし、結果を宛先destKey
に格納します。- パラメーター:
key
- null であってはなりません。otherKeys
- null であってはなりません。destKey
- null であってはなりません。aggregate
- null であってはなりません。weights
- null であってはなりません。- 戻り値:
- 導入:
- 2.1
- 関連事項:
rangeByLex
- パラメーター:
key
- null であってはなりません。range
- null であってはなりません。- 関連事項:
rangeByLex
Range.getLowerBound()
とRange.getUpperBound()
の間の値で、key
の ZSET から辞書式順序でLimit.getOffset()
から開始して、すべての要素 n 要素(n =Limit.getCount()
)を取得します。- パラメーター:
key
- null であってはなりませんrange
- null であってはなりません。limit
- null でもかまいません。- 戻り値:
- 関連事項:
reverseRangeByLex
- パラメーター:
key
- null であってはなりません。range
- null であってはなりません。- 関連事項:
reverseRangeByLex
Range.getLowerBound()
とRange.getUpperBound()
の間の値で、key
の ZSET から逆辞書式順序でLimit.getOffset()
から開始して、すべての要素 n 要素(n =Limit.getCount()
)を取得します。- パラメーター:
key
- null であってはなりませんrange
- null であってはなりません。limit
- null でもかまいません。- 戻り値:
- 関連事項:
delete
指定されたキーを削除します。- パラメーター:
key
- null であってはなりません。