Class RedissonScoredSortedSet<V>
- Type Parameters:
V- value type
- All Implemented Interfaces:
Iterable<V>,RExpirable,RExpirableAsync,RObject,RObjectAsync,RScoredSortedSet<V>,RScoredSortedSetAsync<V>,RSortable<Set<V>>,RSortableAsync<Set<V>>
- Direct Known Subclasses:
RedissonGeo,RedissonLexSortedSet
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.redisson.api.RScoredSortedSet
RScoredSortedSet.Aggregate -
Field Summary
Fields inherited from class org.redisson.RedissonObject
codec, commandExecutor, name -
Constructor Summary
ConstructorsConstructorDescriptionRedissonScoredSortedSet(Codec codec, CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson) RedissonScoredSortedSet(CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds element to this set, overrides previous score if it has been already added.intAdds all elements contained in the specified map to this sorted set.addAllAsync(Map<V, Double> objects) Adds all elements contained in the specified map to this sorted set.intaddAllIfAbsent(Map<V, Double> objects) Adds elements to this set only if they haven't been added before.addAllIfAbsentAsync(Map<V, Double> objects) Adds elements to this set only if they haven't been added before.intaddAllIfExist(Map<V, Double> objects) Adds elements to this set only if they already exist.addAllIfExistAsync(Map<V, Double> objects) Adds elements to this set only if they already exist.intaddAllIfGreater(Map<V, Double> objects) Adds elements to this set only if new scores greater than current score of existed elements.addAllIfGreaterAsync(Map<V, Double> objects) Adds elements to this set only if new scores greater than current score of existed elements.intaddAllIfLess(Map<V, Double> objects) Adds elements to this set only if new scores less than current score of existed elements.addAllIfLessAsync(Map<V, Double> objects) Adds elements to this set only if new scores less than current score of existed elements.addAndGetRank(double score, V object) Adds element to this set, overrides previous score if it has been already added.addAndGetRankAsync(double score, V object) Adds element to this set, overrides previous score if it has been already added.addAndGetRevRank(double score, V object) Adds element to this set, overrides previous score if it has been already added.addAndGetRevRank(Map<? extends V, Double> map) Adds elements to this set, overrides previous score if it has been already added.addAndGetRevRankAsync(double score, V object) Adds element to this set, overrides previous score if it has been already added.addAndGetRevRankAsync(Map<? extends V, Double> map) Adds elements to this set, overrides previous score if it has been already added.Adds element to this set, overrides previous score if it has been already added.booleanaddIfAbsent(double score, V object) Adds element to this set only if has not been added before.addIfAbsentAsync(double score, V object) Adds element to this set only if has not been added before.booleanaddIfExists(double score, V object) Adds element to this set only if it's already exists.addIfExistsAsync(double score, V object) Adds element to this set only if it's already exists.booleanaddIfGreater(double score, V object) Adds element to this set only if new score greater than current score of existed element.addIfGreaterAsync(double score, V object) Adds element to this set only if new score greater than current score of existed element.booleanAdds element to this set only if new score less than current score of existed element.addIfLessAsync(double score, V object) Adds element to this set only if new score less than current score of existed element.intaddListener(ObjectListener listener) Adds object event listeneraddListenerAsync(ObjectListener listener) Adds object event listenerIncreases score of specified element by value.addScoreAndGetRank(V object, Number value) Adds score to element and returns its rankaddScoreAndGetRankAsync(V object, Number value) Adds score to element and returns its rankaddScoreAndGetRevRank(V object, Number value) Adds score to element and returns its reverse rankaddScoreAndGetRevRankAsync(V object, Number value) Adds score to element and returns its reverse rankaddScoreAsync(V object, Number value) Increases score of specified element by value.voidclear()Removes all elements of this sorted set.booleanClear an expire timeout or expire date for object.Clear an expire timeout or expire date for object in async mode.clearExpireAsync(String... keys) booleanReturnstrueif this sorted set contains encoded state of the specified element.booleancontainsAll(Collection<?> c) Returnstrueif this sorted set contains all of the elements in encoded state in the specified collection.containsAllAsync(Collection<?> c) Returnstrueif this sorted set contains all of the elements in encoded state in the specified collection.Returnstrueif this sorted set contains encoded state of the specified element.intcount(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Returns the number of elements with a score betweenstartScoreandendScore.countAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Returns the number of elements with a score betweenstartScoreandendScore.countIntersection(int limit, String... names) Counts elements of set as a result of sets intersection with current set.countIntersection(String... names) Counts elements of set as a result of sets intersection with current set.countIntersectionAsync(int limit, String... names) Counts elements of set as a result of sets intersection with current set.countIntersectionAsync(String... names) Counts elements of set as a result of sets intersection with current set.intDiff provided ScoredSortedSets and store result to current ScoredSortedSetDiff provided ScoredSortedSets and store result to current ScoredSortedSetdistributedIterator(int count) Returns element iterator that can be shared across multiple applications.distributedIterator(String pattern) Returns iterator over elements that match specified pattern.distributedIterator(String iteratorName, String pattern, int count) Returns iterator over elements that match specified pattern.Returns an iterator over entries (value and its score) in this set.entryIterator(int count) Returns an iterator over entries (value and its score) in this set.entryIterator(String pattern) Returns an iterator over entries (value and its score) in this set.entryIterator(String pattern, int count) Returns an iterator over entries (value and its score) in this set.entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Returns all entries (value and its score) betweenstartScoreandendScore.entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Returns all entries (value and its score) betweenstartScoreandendScore.entryRange(int startIndex, int endIndex) Returns entries (value and its score) by rank range.entryRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Returns all entries (value and its score) betweenstartScoreandendScore.entryRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Returns all entries (value and its score) betweenstartScoreandendScore.entryRangeAsync(int startIndex, int endIndex) Returns entries (value and its score) by rank range.entryRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Returns all entries (value and its score) betweenstartScoreandendScorein reversed order.entryRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Returns all entries (value and its score) betweenstartScoreandendScorein reversed order.entryRangeReversed(int startIndex, int endIndex) Returns entries (value and its score) by rank range in reverse order.entryRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Returns all entries (value and its score) betweenstartScoreandendScorein reversed order.entryRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Returns all entries (value and its score) betweenstartScoreandendScorein reversed order.entryRangeReversedAsync(int startIndex, int endIndex) Returns entries (value and its score) by rank range in reverse order.entryScanIteratorAsync(RedisClient client, String startPos, String pattern, int count) booleanUseRExpirable.expire(Duration)insteadbooleanSets a timeout for this object.booleanSets an expiration date for this object.expireAsync(long timeToLive, TimeUnit timeUnit) UseRExpirableAsync.expireAsync(Duration)insteadexpireAsync(long timeToLive, TimeUnit timeUnit, String param, String... keys) expireAsync(Duration duration) Set a timeout for object.expireAsync(Instant instant) Set an expire date for object.booleanexpireAt(long timestamp) UseRExpirable.expire(Instant)insteadbooleanUseRExpirable.expire(Instant)insteadexpireAtAsync(long timestamp) UseRExpirableAsync.expireAsync(Instant)insteadexpireAtAsync(long timestamp, String param, String... keys) expireAtAsync(Date timestamp) UseRExpirableAsync.expireAsync(Instant)insteadbooleanexpireIfGreater(Duration duration) Sets a timeout for this object only if it's greater than timeout set before.booleanexpireIfGreater(Instant time) Sets an expiration date for this object only if it's greater than expiration date set before.expireIfGreaterAsync(Duration duration) Sets a timeout for this object only if it's greater than timeout set before.expireIfGreaterAsync(Instant time) Sets an expiration date for this object only if it's greater than expiration date set before.booleanexpireIfLess(Duration duration) Sets a timeout for this object only if it's less than timeout set before.booleanexpireIfLess(Instant time) Sets an expiration date for this object only if it's less than expiration date set before.expireIfLessAsync(Duration duration) Sets a timeout for this object only if it's less than timeout set before.expireIfLessAsync(Instant time) Sets an expiration date for this object only if it's less than expiration date set before.booleanexpireIfNotSet(Duration duration) Sets a timeout for this object only if it hasn't been set before.booleanexpireIfNotSet(Instant time) Sets an expiration date for this object only if it hasn't been set before.expireIfNotSetAsync(Duration duration) Sets a timeout for this object only if it hasn't been set before.expireIfNotSetAsync(Instant time) Sets an expiration date for this object only if it hasn't been set before.booleanexpireIfSet(Duration duration) Sets a timeout for this object only if it has been already set.booleanexpireIfSet(Instant time) Sets an expiration date for this object only if it has been already set.expireIfSetAsync(Duration duration) Sets a timeout for this object only if it has been already set.expireIfSetAsync(Instant time) Sets an expiration date for this object only if it has been already set.first()Returns the head element ornullif this sorted set is empty.Returns the head element ornullif this sorted set is empty.Returns the head entry (value and its score) ornullif this sorted set is empty.Returns the head entry (value and its score) ornullif this sorted set is empty.Returns score of the tail element or returnsnullif this sorted set is empty.Returns score of the head element or returnsnullif this sorted set is empty.longExpiration time of Redisson object that has a timeoutExpiration time of Redisson object that has a timeoutReturns scores of elements.Returns score of element ornullif it doesn't exist.getScoreAsync(Collection<V> elements) Returns scores of elements.getScoreAsync(V o) Returns score of element ornullif it doesn't exist.intintersection(String... names) Intersect provided ScoredSortedSets and store result to current ScoredSortedSetintintersection(Map<String, Double> nameWithWeight) Intersect provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSetintintersection(RScoredSortedSet.Aggregate aggregate, String... names) Intersect provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSetintintersection(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Intersect provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSetintersectionAsync(String... names) Intersect provided ScoredSortedSets and store result to current ScoredSortedSetintersectionAsync(Map<String, Double> nameWithWeight) Intersect provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSetintersectionAsync(RScoredSortedSet.Aggregate aggregate, String... names) Intersect provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSetintersectionAsync(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Intersect provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSetbooleanisEmpty()Returnstrueif this set is emptyiterator()iterator(int count) Returns an iterator over elements in this set.Returns an iterator over elements in this set.Returns an iterator over elements in this set.last()Returns the tail element ornullif this sorted set is empty.Returns the tail element ornullif this sorted set is empty.Returns the tail entry (value and its score) ornullif this sorted set is empty.Returns the tail entry (value and its score) ornullif this sorted set is empty.Returns score of the head element or returnsnullif this sorted set is empty.Returns score of the tail element or returnsnullif this sorted set is empty.<KOut,VOut>
RCollectionMapReduce<V, KOut, VOut> ReturnsRMapReduceobject associated with this objectRemoves and returns the head element ornullif this sorted set is empty.pollFirst(int count) Removes and returns the head elements of this sorted set.Removes and returns the head element ornullif this sorted set is empty.Removes and returns the head elements.Removes and returns the head element ornullif this sorted set is empty.pollFirstAsync(int count) Removes and returns the head elements of this sorted set.pollFirstAsync(long timeout, TimeUnit unit) Removes and returns the head element ornullif this sorted set is empty.pollFirstAsync(Duration duration, int count) Removes and returns the head elements.List<ScoredEntry<V>> pollFirstEntries(int count) Removes and returns the head entries (value and its score) of this sorted set.List<ScoredEntry<V>> pollFirstEntries(Duration duration, int count) Removes and returns the head entries (value and its score).RFuture<List<ScoredEntry<V>>> pollFirstEntriesAsync(int count) Removes and returns the head entries (value and its score) of this sorted set.RFuture<List<ScoredEntry<V>>> pollFirstEntriesAsync(Duration duration, int count) Removes and returns the head entries (value and its score).pollFirstEntriesFromAny(int count, String... queueNames) Removes and returns first available head entries of any sorted set including this one.pollFirstEntriesFromAny(Duration duration, int count, String... queueNames) Removes and returns first available head entries of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.pollFirstEntriesFromAnyAsync(int count, String... queueNames) Removes and returns first available head elements of any sorted set including this one.pollFirstEntriesFromAnyAsync(Duration duration, int count, String... queueNames) Removes and returns first available head elements of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.Removes and returns the head entry (value and its score) ornullif this sorted set is empty.Removes and returns the head entry (value and its score) ornullif this sorted set is empty.pollFirstFromAny(int count, String... queueNames) Removes and returns first available head elements of any sorted set including this one.pollFirstFromAny(long timeout, TimeUnit unit, String... queueNames) Removes and returns first available head element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.pollFirstFromAny(Duration duration, int count, String... queueNames) Removes and returns first available head elements of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.pollFirstFromAnyAsync(int count, String... queueNames) Removes and returns first available head elements of any sorted set including this one.pollFirstFromAnyAsync(long timeout, TimeUnit unit, String... queueNames) Removes and returns first available head element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.pollFirstFromAnyAsync(Duration duration, int count, String... queueNames) Removes and returns first available head elements of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.pollLast()Removes and returns the tail element ornullif this sorted set is empty.pollLast(int count) Removes and returns the tail elements of this sorted set.Removes and returns the tail element ornullif this sorted set is empty.Removes and returns the tail elements.Removes and returns the tail element ornullif this sorted set is empty.pollLastAsync(int count) Removes and returns the tail elements of this sorted set.pollLastAsync(long timeout, TimeUnit unit) Removes and returns the tail element ornullif this sorted set is empty.pollLastAsync(Duration duration, int count) Removes and returns the tail elements.List<ScoredEntry<V>> pollLastEntries(int count) Removes and returns the tail entries (value and its score) of this sorted set.List<ScoredEntry<V>> pollLastEntries(Duration duration, int count) Removes and returns the head entries (value and its score).RFuture<List<ScoredEntry<V>>> pollLastEntriesAsync(int count) Removes and returns the tail entries (value and its score) of this sorted set.RFuture<List<ScoredEntry<V>>> pollLastEntriesAsync(Duration duration, int count) Removes and returns the head entries (value and its score).pollLastEntriesFromAny(int count, String... queueNames) Removes and returns first available tail entries of any sorted set including this one.pollLastEntriesFromAny(Duration duration, int count, String... queueNames) Removes and returns first available tail entries of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.pollLastEntriesFromAnyAsync(int count, String... queueNames) Removes and returns first available tail entries of any sorted set including this one.pollLastEntriesFromAnyAsync(Duration duration, int count, String... queueNames) Removes and returns first available tail entries of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.Removes and returns the tail entry (value and its score) ornullif this sorted set is empty.Removes and returns the tail entry (value and its score) ornullif this sorted set is empty.pollLastFromAny(int count, String... queueNames) Removes and returns first available tail elements of any sorted set including this one.pollLastFromAny(long timeout, TimeUnit unit, String... queueNames) Removes and returns first available tail element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.pollLastFromAny(Duration duration, int count, String... queueNames) Removes and returns first available tail elements of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.pollLastFromAnyAsync(int count, String... queueNames) Removes and returns first available tail elements of any sorted set including this one.pollLastFromAnyAsync(long timeout, TimeUnit unit, String... queueNames) Removes and returns first available tail element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.pollLastFromAnyAsync(Duration duration, int count, String... queueNames) Removes and returns first available tail elements of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.random()Returns random element from this sorted setrandom(int count) Returns random elements from this sorted set limited bycountReturns random element from this sorted setrandomAsync(int count) Returns random elements from this sorted set limited bycountrandomEntries(int count) Returns random entries from this sorted set limited bycount.randomEntriesAsync(int count) Returns random entries from this sorted set limited bycount.intrangeTo(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Stores to defined ScoredSortedSet values betweenstartScoreandendScore.intrangeTo(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Stores to defined ScoredSortedSet values betweenstartScoreandendScore.intStores to defined ScoredSortedSet values by rank range.rangeToAsync(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Stores to defined ScoredSortedSet values betweenstartScoreandendScore.rangeToAsync(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Stores to defined ScoredSortedSet values betweenstartScoreandendScore.rangeToAsync(String destName, int startIndex, int endIndex) Stores to defined ScoredSortedSet values by rank range.Returns rank of value, with the ranks ordered from low to high.Returns rank of value, with the scores ordered from low to high.Returns rank and score of specifiedvalue, with the ranks ordered from low to high.rankEntryAsync(V o) Returns rank and score of specifiedvalue, with the ranks ordered from low to high.readAll()Read all values at once.Read all values at once.Diff ScoredSortedSets specified by name with current ScoredSortedSet without state change.readDiffAsync(String... names) Diff ScoredSortedSets specified by name with current ScoredSortedSet without state change.readIntersection(String... names) Intersect provided ScoredSortedSets with current ScoredSortedSet without state changereadIntersection(Map<String, Double> nameWithWeight) Intersect provided ScoredSortedSets mapped to weight multiplier with current ScoredSortedSet without state changereadIntersection(RScoredSortedSet.Aggregate aggregate, String... names) Intersect provided ScoredSortedSets with current ScoredSortedSet using defined aggregation method without state changereadIntersection(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Intersect provided ScoredSortedSets mapped to weight multiplier with current ScoredSortedSet using defined aggregation method without state changereadIntersectionAsync(String... names) Intersect provided ScoredSortedSets with current ScoredSortedSet without state changereadIntersectionAsync(Map<String, Double> nameWithWeight) Intersect provided ScoredSortedSets mapped to weight multiplier with current ScoredSortedSet without state changereadIntersectionAsync(RScoredSortedSet.Aggregate aggregate, String... names) Intersect provided ScoredSortedSets with current ScoredSortedSet using defined aggregation method without state changereadIntersectionAsync(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Intersect provided ScoredSortedSets mapped to weight multiplier with current ScoredSortedSet using defined aggregation method without state change<T> Collection<T> Read data in sorted view<T> Collection<T> Read data in sorted viewRead data in sorted viewRead data in sorted viewRead data in sorted viewRead data in sorted view<T> Collection<T> readSortAlpha(String byPattern, List<String> getPatterns, SortOrder order) Read data in sorted view lexicographically<T> Collection<T> readSortAlpha(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Read data in sorted view lexicographicallyreadSortAlpha(String byPattern, SortOrder order) Read data in sorted view lexicographicallyreadSortAlpha(String byPattern, SortOrder order, int offset, int count) Read data in sorted view lexicographicallyreadSortAlpha(SortOrder order) Read data in sorted view lexicographicallyreadSortAlpha(SortOrder order, int offset, int count) Read data in sorted view lexicographically<T> RFuture<Collection<T>> readSortAlphaAsync(String byPattern, List<String> getPatterns, SortOrder order) Read data in sorted view lexicographically<T> RFuture<Collection<T>> readSortAlphaAsync(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Read data in sorted view lexicographicallyreadSortAlphaAsync(String byPattern, SortOrder order) Read data in sorted view lexicographicallyreadSortAlphaAsync(String byPattern, SortOrder order, int offset, int count) Read data in sorted view lexicographicallyreadSortAlphaAsync(SortOrder order) Read data in sorted view lexicographicallyreadSortAlphaAsync(SortOrder order, int offset, int count) Read data in sorted view lexicographically<T> RFuture<Collection<T>> readSortAsync(String byPattern, List<String> getPatterns, SortOrder order) Read data in sorted view<T> RFuture<Collection<T>> readSortAsync(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Read data in sorted viewreadSortAsync(String byPattern, SortOrder order) Read data in sorted viewreadSortAsync(String byPattern, SortOrder order, int offset, int count) Read data in sorted viewreadSortAsync(SortOrder order) Read data in sorted viewreadSortAsync(SortOrder order, int offset, int count) Read data in sorted viewUnion ScoredSortedSets specified by name with current ScoredSortedSet without state change.Union provided ScoredSortedSets mapped to weight multiplier and current ScoredSortedSet without state change.readUnion(RScoredSortedSet.Aggregate aggregate, String... names) Union ScoredSortedSets specified by name with defined aggregation method and current ScoredSortedSet without state change.readUnion(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Union provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and current ScoredSortedSet without state changereadUnionAsync(String... names) Union ScoredSortedSets specified by name with current ScoredSortedSet without state change.readUnionAsync(Map<String, Double> nameWithWeight) Union provided ScoredSortedSets mapped to weight multiplier and current ScoredSortedSet without state change.readUnionAsync(RScoredSortedSet.Aggregate aggregate, String... names) Union ScoredSortedSets specified by name with defined aggregation method and current ScoredSortedSet without state change.readUnionAsync(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Union provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and current ScoredSortedSet without state changelongRemaining time to live of Redisson object that has a timeoutRemaining time to live of Redisson object that has a timeoutbooleanRemoves a single instance of the specified element from this sorted set, if it is present.booleanremoveAll(Collection<?> c) Removes all of this sorted set's elements that are also contained in the specified collection.removeAllAsync(Collection<?> c) Removes all of this sorted set's elements that are also contained in the specified collection.removeAsync(Object object) Removes a single instance of the specified element from this sorted set, if it is present.voidremoveListener(int listenerId) Removes object event listenerremoveListenerAsync(int listenerId) Removes object event listenerintremoveRangeByRank(int startIndex, int endIndex) Removes values by rank range.removeRangeByRankAsync(int startIndex, int endIndex) Removes values by rank range.intremoveRangeByScore(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Removes values by score range.removeRangeByScoreAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Removes values by score range.booleanReplaces a previousoldObjectwith anewObject.replaceAsync(V oldObject, V newObject) Replaces a previousoldObjectwith anewObject.booleanretainAll(Collection<?> c) Retains only the elements in this sorted set that are contained in the specified collection.retainAllAsync(Collection<?> c) Retains only the elements in this sorted set that are contained in the specified collection.intrevRangeTo(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Stores to defined ScoredSortedSet values in reversed order betweenstartScoreandendScore.intrevRangeTo(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Stores to defined ScoredSortedSet values in reversed order betweenstartScoreandendScore.intrevRangeTo(String destName, int startIndex, int endIndex) Stores to defined ScoredSortedSet values in reversed order by rank range.revRangeToAsync(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Stores to defined ScoredSortedSet values in reversed order betweenstartScoreandendScore.revRangeToAsync(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Stores to defined ScoredSortedSet values in reversed order betweenstartScoreandendScore.revRangeToAsync(String destName, int startIndex, int endIndex) Stores to defined ScoredSortedSet values in reversed order by rank range.revRank(Collection<V> elements) Returns ranks of elements, with the scores ordered from high to low.Returns rank of value, with the ranks ordered from high to low.revRankAsync(Collection<V> elements) Returns ranks of elements, with the scores ordered from high to low.revRankAsync(V o) Returns rank of value, with the scores ordered from high to low.revRankEntry(V o) Returns rank and score of specifiedvalue, with the ranks ordered from high to low.Returns rank and score of specifiedvalue, with the ranks ordered from high to low.scanIteratorAsync(RedisClient client, String startPos, String pattern, int count) intsize()Returns size of this set.Returns size of this set.intSort data and store todestNamelistintsortTo(String destName, String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Sort data and store todestNamelistintSort data and store todestNamelistintSort data and store todestNamelistintSort data and store todestNamelistintSort data and store todestNamelistSort data and store todestNamelistsortToAsync(String destName, String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Sort data and store todestNamelistsortToAsync(String destName, String byPattern, SortOrder order) Sort data and store todestNamelistsortToAsync(String destName, String byPattern, SortOrder order, int offset, int count) Sort data and store todestNamelistsortToAsync(String destName, SortOrder order) Sort data and store todestNamelistsortToAsync(String destName, SortOrder order, int offset, int count) Sort data and store todestNameliststream()Returns stream of elements in this set.stream(int count) Returns stream of elements in this set.Returns stream of elements in this set.Returns stream of elements in this set.intsubscribeOnFirstElements(Consumer<V> consumer) UseRScoredSortedSet.subscribeOnFirstElements(Function)instead.intsubscribeOnFirstElements(Function<V, CompletionStage<Void>> consumer) Subscribes on first elements appeared in this set.intsubscribeOnLastElements(Consumer<V> consumer) UseRScoredSortedSet.subscribeOnLastElements(Function)instead.intsubscribeOnLastElements(Function<V, CompletionStage<Void>> consumer) Subscribes on last elements appeared in this set.Removes and returns the head element waiting if necessary for an element to become available.Removes and returns the head element waiting if necessary for an element to become available.takeLast()Removes and returns the tail element waiting if necessary for an element to become available.Removes and returns the tail element waiting if necessary for an element to become available.Object[]toArray()Returns this sorted set in array of Object type.<T> T[]toArray(T[] a) Returns this sorted set in array of defined type.booleanUseRScoredSortedSet.addIfAbsent(double, Object)insteadtryAddAsync(double score, V object) intUnion provided ScoredSortedSets and store result to current ScoredSortedSetintUnion provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSetintunion(RScoredSortedSet.Aggregate aggregate, String... names) Union provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSetintunion(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Union provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSetunionAsync(String... names) Union provided ScoredSortedSets and store result to current ScoredSortedSetunionAsync(Map<String, Double> nameWithWeight) Union provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSetunionAsync(RScoredSortedSet.Aggregate aggregate, String... names) Union provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSetunionAsync(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Union provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSetvoidunsubscribe(int listenerId) Un-subscribes defined listener.protected final Stringvalue(double score, boolean inclusive) valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Returns all values betweenstartScoreandendScore.valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Returns all values betweenstartScoreandendScore.valueRange(int startIndex, int endIndex) Returns values by rank range.valueRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Returns all values betweenstartScoreandendScore.valueRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Returns all values betweenstartScoreandendScore.valueRangeAsync(int startIndex, int endIndex) Returns values by rank range.valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Returns all values betweenstartScoreandendScorein reversed order.valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Returns all values betweenstartScoreandendScorein reversed order.valueRangeReversed(int startIndex, int endIndex) Returns values by rank range in reverse order.valueRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Returns all values betweenstartScoreandendScorein reversed order.valueRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Returns all values betweenstartScoreandendScorein reversed order.valueRangeReversedAsync(int startIndex, int endIndex) Returns values by rank range in reverse order.Methods inherited from class org.redisson.RedissonObject
addListener, addListenerAsync, addTrackingListener, addTrackingListenerAsync, checkNotBatch, copy, copyAsync, delete, deleteAsync, deleteAsync, dump, dumpAsync, encode, encode, encode, encode, encodeMapKey, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getIdleTime, getIdleTimeAsync, getLockByMapKey, getLockByValue, getName, getRawName, getRawName, getServiceManager, getSubscribeService, isExists, isExistsAsync, map, mapName, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListenerAsync, removeListenerAsync, removeTrackingListener, removeTrackingListenerAsync, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, setName, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, touch, touchAsync, unlink, unlinkAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLiveMethods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, expireIfGreaterAsync, expireIfGreaterAsync, expireIfLessAsync, expireIfLessAsync, expireIfNotSetAsync, expireIfNotSetAsync, expireIfSetAsync, expireIfSetAsync, getExpireTimeAsync, remainTimeToLiveAsyncMethods inherited from interface org.redisson.api.RObject
copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkMethods inherited from interface org.redisson.api.RObjectAsync
copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
Constructor Details
-
RedissonScoredSortedSet
public RedissonScoredSortedSet(CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson) -
RedissonScoredSortedSet
public RedissonScoredSortedSet(Codec codec, CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson)
-
-
Method Details
-
mapReduce
Description copied from interface:RScoredSortedSetReturnsRMapReduceobject associated with this object- Specified by:
mapReducein interfaceRScoredSortedSet<V>- Type Parameters:
KOut- output keyVOut- output value- Returns:
- MapReduce instance
-
readAll
Description copied from interface:RScoredSortedSetRead all values at once.- Specified by:
readAllin interfaceRScoredSortedSet<V>- Returns:
- values
-
readAllAsync
Description copied from interface:RScoredSortedSetAsyncRead all values at once.- Specified by:
readAllAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- values
-
pollFirst
Description copied from interface:RScoredSortedSetRemoves and returns the head element ornullif this sorted set is empty.- Specified by:
pollFirstin interfaceRScoredSortedSet<V>- Returns:
- the head element,
or
nullif this sorted set is empty
-
pollLast
Description copied from interface:RScoredSortedSetRemoves and returns the tail element ornullif this sorted set is empty.- Specified by:
pollLastin interfaceRScoredSortedSet<V>- Returns:
- the tail element or
nullif this sorted set is empty
-
pollFirst
Description copied from interface:RScoredSortedSetRemoves and returns the head elements of this sorted set.- Specified by:
pollFirstin interfaceRScoredSortedSet<V>- Parameters:
count- - elements amount- Returns:
- the head elements of this sorted set
-
pollLast
Description copied from interface:RScoredSortedSetRemoves and returns the tail elements of this sorted set.- Specified by:
pollLastin interfaceRScoredSortedSet<V>- Parameters:
count- - elements amount- Returns:
- the tail elements of this sorted set
-
pollFirstAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the head elements of this sorted set.- Specified by:
pollFirstAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
count- - elements amount- Returns:
- the head elements of this sorted set
-
pollLastAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the tail elements of this sorted set.- Specified by:
pollLastAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
count- - elements amount- Returns:
- the tail elements of this sorted set
-
pollFirstAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the head element ornullif this sorted set is empty.- Specified by:
pollFirstAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- the head element,
or
nullif this sorted set is empty
-
pollLastAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the tail element ornullif this sorted set is empty.- Specified by:
pollLastAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- the tail element or
nullif this sorted set is empty
-
pollFirstEntry
Description copied from interface:RScoredSortedSetRemoves and returns the head entry (value and its score) ornullif this sorted set is empty.- Specified by:
pollFirstEntryin interfaceRScoredSortedSet<V>- Returns:
- the head entry,
or
nullif this sorted set is empty
-
pollLastEntry
Description copied from interface:RScoredSortedSetRemoves and returns the tail entry (value and its score) ornullif this sorted set is empty.- Specified by:
pollLastEntryin interfaceRScoredSortedSet<V>- Returns:
- the tail entry or
nullif this sorted set is empty
-
pollFirstEntryAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the head entry (value and its score) ornullif this sorted set is empty.- Specified by:
pollFirstEntryAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- the head entry,
or
nullif this sorted set is empty
-
pollLastEntryAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the tail entry (value and its score) ornullif this sorted set is empty.- Specified by:
pollLastEntryAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- the tail entry or
nullif this sorted set is empty
-
pollFirstEntries
Description copied from interface:RScoredSortedSetRemoves and returns the head entries (value and its score) of this sorted set.- Specified by:
pollFirstEntriesin interfaceRScoredSortedSet<V>- Parameters:
count- entries amount- Returns:
- the head entries of this sorted set
-
pollLastEntries
Description copied from interface:RScoredSortedSetRemoves and returns the tail entries (value and its score) of this sorted set.- Specified by:
pollLastEntriesin interfaceRScoredSortedSet<V>- Parameters:
count- entries amount- Returns:
- the tail entries of this sorted set
-
pollFirstEntriesAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the head entries (value and its score) of this sorted set.- Specified by:
pollFirstEntriesAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
count- entries amount- Returns:
- the head entries of this sorted set
-
pollLastEntriesAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the tail entries (value and its score) of this sorted set.- Specified by:
pollLastEntriesAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
count- entries amount- Returns:
- the tail entries of this sorted set
-
pollFirstEntries
Description copied from interface:RScoredSortedSetRemoves and returns the head entries (value and its score).Requires Redis 7.0.0 and higher.
- Specified by:
pollFirstEntriesin interfaceRScoredSortedSet<V>- Parameters:
duration- how long to wait before giving upcount- entries amount- Returns:
- the head entries
-
pollLastEntries
Description copied from interface:RScoredSortedSetRemoves and returns the head entries (value and its score).Requires Redis 7.0.0 and higher.
- Specified by:
pollLastEntriesin interfaceRScoredSortedSet<V>- Parameters:
duration- how long to wait before giving upcount- entries amount- Returns:
- the tail entries
-
pollFirstEntriesAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the head entries (value and its score).Requires Redis 7.0.0 and higher.
- Specified by:
pollFirstEntriesAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
duration- how long to wait before giving upcount- entries amount- Returns:
- the head entries
-
pollLastEntriesAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the head entries (value and its score).Requires Redis 7.0.0 and higher.
- Specified by:
pollLastEntriesAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
duration- how long to wait before giving upcount- entries amount- Returns:
- the tail entries
-
pollFirst
Description copied from interface:RScoredSortedSetRemoves and returns the head element ornullif this sorted set is empty.Requires Redis 5.0.0 and higher.
- Specified by:
pollFirstin interfaceRScoredSortedSet<V>- Parameters:
timeout- how long to wait before giving up, in units ofunitunit- aTimeUnitdetermining how to interpret thetimeoutparameter- Returns:
- the head element,
or
nullif this sorted set is empty
-
pollFirstAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the head element ornullif this sorted set is empty.Requires Redis 5.0.0 and higher.
- Specified by:
pollFirstAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
timeout- how long to wait before giving up, in units ofunitunit- aTimeUnitdetermining how to interpret thetimeoutparameter- Returns:
- the head element,
or
nullif this sorted set is empty
-
pollFirstFromAny
Description copied from interface:RScoredSortedSetRemoves and returns first available head element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.Requires Redis 5.0.0 and higher.
- Specified by:
pollFirstFromAnyin interfaceRScoredSortedSet<V>- Parameters:
timeout- how long to wait before giving up, in units ofunitunit- aTimeUnitdetermining how to interpret thetimeoutparameterqueueNames- name of queues- Returns:
- the head element, or
nullif all sorted sets are empty
-
pollFirstFromAnyAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns first available head element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.Requires Redis 5.0.0 and higher.
- Specified by:
pollFirstFromAnyAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
timeout- how long to wait before giving up, in units ofunitunit- aTimeUnitdetermining how to interpret thetimeoutparameterqueueNames- name of queues- Returns:
- the head element, or
nullif all sorted sets are empty
-
pollFirstFromAny
Description copied from interface:RScoredSortedSetRemoves and returns first available head elements of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollFirstFromAnyin interfaceRScoredSortedSet<V>- Parameters:
duration- how long to wait before giving upcount- elements amountqueueNames- name of queues- Returns:
- the head elements
-
pollFirstFromAnyAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns first available head elements of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollFirstFromAnyAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
duration- how long to wait before giving upcount- elements amountqueueNames- name of queues- Returns:
- the head elements
-
pollFirstFromAny
Description copied from interface:RScoredSortedSetRemoves and returns first available head elements of any sorted set including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollFirstFromAnyin interfaceRScoredSortedSet<V>- Parameters:
count- elements amountqueueNames- name of queues- Returns:
- the head elements
-
pollFirstFromAnyAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns first available head elements of any sorted set including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollFirstFromAnyAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
count- elements amountqueueNames- name of queues- Returns:
- the head elements
-
pollFirstEntriesFromAny
Description copied from interface:RScoredSortedSetRemoves and returns first available head entries of any sorted set including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollFirstEntriesFromAnyin interfaceRScoredSortedSet<V>- Parameters:
count- entries amountqueueNames- name of queues- Returns:
- the head elements
-
pollFirstEntriesFromAnyAsync
public RFuture<Map<String,Map<V, pollFirstEntriesFromAnyAsyncDouble>>> (int count, String... queueNames) Description copied from interface:RScoredSortedSetAsyncRemoves and returns first available head elements of any sorted set including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollFirstEntriesFromAnyAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
count- elements amountqueueNames- name of queues- Returns:
- the head elements
-
pollFirstEntriesFromAny
public Map<String,Map<V, pollFirstEntriesFromAnyDouble>> (Duration duration, int count, String... queueNames) Description copied from interface:RScoredSortedSetRemoves and returns first available head entries of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollFirstEntriesFromAnyin interfaceRScoredSortedSet<V>- Parameters:
duration- how long to wait before giving upcount- entries amountqueueNames- name of queues- Returns:
- the head entries
-
pollFirstEntriesFromAnyAsync
public RFuture<Map<String,Map<V, pollFirstEntriesFromAnyAsyncDouble>>> (Duration duration, int count, String... queueNames) Description copied from interface:RScoredSortedSetAsyncRemoves and returns first available head elements of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollFirstEntriesFromAnyAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
duration- how long to wait before giving upcount- elements amountqueueNames- name of queues- Returns:
- the head elements
-
pollLastFromAny
Description copied from interface:RScoredSortedSetRemoves and returns first available tail element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.Requires Redis 5.0.0 and higher.
- Specified by:
pollLastFromAnyin interfaceRScoredSortedSet<V>- Parameters:
timeout- how long to wait before giving up, in units ofunitunit- aTimeUnitdetermining how to interpret thetimeoutparameterqueueNames- name of queues- Returns:
- the tail element, or
nullif all sorted sets are empty
-
pollLastFromAnyAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns first available tail element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.Requires Redis 5.0.0 and higher.
- Specified by:
pollLastFromAnyAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
timeout- how long to wait before giving up, in units ofunitunit- aTimeUnitdetermining how to interpret thetimeoutparameterqueueNames- name of queues- Returns:
- the tail element, or
nullif all sorted sets are empty
-
pollLastFromAny
Description copied from interface:RScoredSortedSetRemoves and returns first available tail elements of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollLastFromAnyin interfaceRScoredSortedSet<V>- Parameters:
duration- how long to wait before giving upcount- elements amountqueueNames- name of queues- Returns:
- the tail elements
-
pollLastFromAnyAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns first available tail elements of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollLastFromAnyAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
duration- how long to wait before giving upcount- elements amountqueueNames- name of queues- Returns:
- the tail elements
-
pollLastFromAny
Description copied from interface:RScoredSortedSetRemoves and returns first available tail elements of any sorted set including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollLastFromAnyin interfaceRScoredSortedSet<V>- Parameters:
count- elements amountqueueNames- name of queues- Returns:
- the tail elements
-
pollLastFromAnyAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns first available tail elements of any sorted set including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollLastFromAnyAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
count- elements amountqueueNames- name of queues- Returns:
- the tail elements
-
pollLastEntriesFromAny
Description copied from interface:RScoredSortedSetRemoves and returns first available tail entries of any sorted set including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollLastEntriesFromAnyin interfaceRScoredSortedSet<V>- Parameters:
count- entries amountqueueNames- name of queues- Returns:
- the head entries
-
pollLastEntriesFromAnyAsync
public RFuture<Map<String,Map<V, pollLastEntriesFromAnyAsyncDouble>>> (int count, String... queueNames) Description copied from interface:RScoredSortedSetAsyncRemoves and returns first available tail entries of any sorted set including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollLastEntriesFromAnyAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
count- entries amountqueueNames- name of queues- Returns:
- the head entries
-
pollLastEntriesFromAny
public Map<String,Map<V, pollLastEntriesFromAnyDouble>> (Duration duration, int count, String... queueNames) Description copied from interface:RScoredSortedSetRemoves and returns first available tail entries of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollLastEntriesFromAnyin interfaceRScoredSortedSet<V>- Parameters:
duration- how long to wait before giving upcount- entries amountqueueNames- name of queues- Returns:
- the tail entries
-
pollLastEntriesFromAnyAsync
public RFuture<Map<String,Map<V, pollLastEntriesFromAnyAsyncDouble>>> (Duration duration, int count, String... queueNames) Description copied from interface:RScoredSortedSetAsyncRemoves and returns first available tail entries of any sorted set, waiting up to the specified wait time if necessary for elements to become available in any of defined sorted sets including this one.Requires Redis 7.0.0 and higher.
- Specified by:
pollLastEntriesFromAnyAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
duration- how long to wait before giving upcount- entries amountqueueNames- name of queues- Returns:
- the tail entries
-
pollLast
Description copied from interface:RScoredSortedSetRemoves and returns the tail element ornullif this sorted set is empty.Requires Redis 5.0.0 and higher.
- Specified by:
pollLastin interfaceRScoredSortedSet<V>- Parameters:
timeout- how long to wait before giving up, in units ofunitunit- aTimeUnitdetermining how to interpret thetimeoutparameter- Returns:
- the tail element or
nullif this sorted set is empty
-
pollLastAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the tail element ornullif this sorted set is empty.Requires Redis 5.0.0 and higher.
- Specified by:
pollLastAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
timeout- how long to wait before giving up, in units ofunitunit- aTimeUnitdetermining how to interpret thetimeoutparameter- Returns:
- the tail element or
nullif this sorted set is empty
-
pollFirst
Description copied from interface:RScoredSortedSetRemoves and returns the head elements.Requires Redis 7.0.0 and higher.
- Specified by:
pollFirstin interfaceRScoredSortedSet<V>- Parameters:
duration- how long to wait before giving upcount- entries amount- Returns:
- the head elements
-
pollFirstAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the head elements.Requires Redis 7.0.0 and higher.
- Specified by:
pollFirstAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
duration- how long to wait before giving upcount- elements amount- Returns:
- the head elements
-
pollLast
Description copied from interface:RScoredSortedSetRemoves and returns the tail elements.Requires Redis 7.0.0 and higher.
- Specified by:
pollLastin interfaceRScoredSortedSet<V>- Parameters:
duration- how long to wait before giving up- Returns:
- the tail elements
-
pollLastAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the tail elements.Requires Redis 7.0.0 and higher.
- Specified by:
pollLastAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
duration- how long to wait before giving upcount- elements amount- Returns:
- the tail elements
-
random
Description copied from interface:RScoredSortedSetReturns random element from this sorted setRequires Redis 6.2.0 and higher.
- Specified by:
randomin interfaceRScoredSortedSet<V>- Returns:
- random element
-
random
Description copied from interface:RScoredSortedSetReturns random elements from this sorted set limited bycountRequires Redis 6.2.0 and higher.
- Specified by:
randomin interfaceRScoredSortedSet<V>- Parameters:
count- - values amount to return- Returns:
- random elements
-
randomAsync
Description copied from interface:RScoredSortedSetAsyncReturns random element from this sorted setRequires Redis 6.2.0 and higher.
- Specified by:
randomAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- value
-
randomAsync
Description copied from interface:RScoredSortedSetAsyncReturns random elements from this sorted set limited bycountRequires Redis 6.2.0 and higher.
- Specified by:
randomAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
count- - values amount to return- Returns:
- value
-
randomEntries
Description copied from interface:RScoredSortedSetReturns random entries from this sorted set limited bycount. Each map entry uses element as key and score as value.Requires Redis 6.2.0 and higher.
- Specified by:
randomEntriesin interfaceRScoredSortedSet<V>- Parameters:
count- - entries amount to return- Returns:
- random entries
-
randomEntriesAsync
Description copied from interface:RScoredSortedSetAsyncReturns random entries from this sorted set limited bycount. Each map entry uses element as key and score as value.Requires Redis 6.2.0 and higher.
- Specified by:
randomEntriesAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
count- - entries amount to return- Returns:
- random entries
-
add
Description copied from interface:RScoredSortedSetAdds element to this set, overrides previous score if it has been already added.- Specified by:
addin interfaceRScoredSortedSet<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
trueif element has added andfalseif not.
-
addAndGetRank
Description copied from interface:RScoredSortedSetAdds element to this set, overrides previous score if it has been already added. Finally return the rank of the item- Specified by:
addAndGetRankin interfaceRScoredSortedSet<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
- rank
-
addAndGetRankAsync
Description copied from interface:RScoredSortedSetAsyncAdds element to this set, overrides previous score if it has been already added. Finally return the rank of the item- Specified by:
addAndGetRankAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
- rank
-
addAndGetRevRank
Description copied from interface:RScoredSortedSetAdds element to this set, overrides previous score if it has been already added. Finally return the reverse rank of the item- Specified by:
addAndGetRevRankin interfaceRScoredSortedSet<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
- reverse rank
-
addAndGetRevRank
Description copied from interface:RScoredSortedSetAdds elements to this set, overrides previous score if it has been already added. Finally returns reverse rank list of the items- Specified by:
addAndGetRevRankin interfaceRScoredSortedSet<V>- Parameters:
map- - map of object and scores, make sure to use an ordered map- Returns:
- collection of reverse ranks
-
addAndGetRevRankAsync
Description copied from interface:RScoredSortedSetAsyncAdds element to this set, overrides previous score if it has been already added. Finally return the reverse rank of the item- Specified by:
addAndGetRevRankAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
- reverse rank
-
addAndGetRevRankAsync
Description copied from interface:RScoredSortedSetAsyncAdds elements to this set, overrides previous score if it has been already added. Finally returns reverse rank list of the items- Specified by:
addAndGetRevRankAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
map- - map of object and scores, make sure to use an ordered map- Returns:
- collection of reverse ranks
-
tryAdd
Description copied from interface:RScoredSortedSetUseRScoredSortedSet.addIfAbsent(double, Object)instead- Specified by:
tryAddin interfaceRScoredSortedSet<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
trueif element added andfalseif not.
-
addIfExists
Description copied from interface:RScoredSortedSetAdds element to this set only if it's already exists.Requires Redis 3.0.2 and higher.
- Specified by:
addIfExistsin interfaceRScoredSortedSet<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
trueif element added andfalseif not.
-
addIfExistsAsync
Description copied from interface:RScoredSortedSetAsyncAdds element to this set only if it's already exists.Requires Redis 3.0.2 and higher.
- Specified by:
addIfExistsAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
trueif element added andfalseif not.
-
addIfLess
Description copied from interface:RScoredSortedSetAdds element to this set only if new score less than current score of existed element.Requires Redis 6.2.0 and higher.
- Specified by:
addIfLessin interfaceRScoredSortedSet<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
trueif element added andfalseif not.
-
addIfGreater
Description copied from interface:RScoredSortedSetAdds element to this set only if new score greater than current score of existed element.Requires Redis 6.2.0 and higher.
- Specified by:
addIfGreaterin interfaceRScoredSortedSet<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
trueif element added andfalseif not.
-
addIfLessAsync
Description copied from interface:RScoredSortedSetAsyncAdds element to this set only if new score less than current score of existed element.Requires Redis 6.2.0 and higher.
- Specified by:
addIfLessAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
trueif element added andfalseif not.
-
addIfGreaterAsync
Description copied from interface:RScoredSortedSetAsyncAdds element to this set only if new score greater than current score of existed element.Requires Redis 6.2.0 and higher.
- Specified by:
addIfGreaterAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
trueif element added andfalseif not.
-
first
Description copied from interface:RScoredSortedSetReturns the head element ornullif this sorted set is empty.- Specified by:
firstin interfaceRScoredSortedSet<V>- Returns:
- the head element or
nullif this sorted set is empty
-
firstAsync
Description copied from interface:RScoredSortedSetAsyncReturns the head element ornullif this sorted set is empty.- Specified by:
firstAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- the head element or
nullif this sorted set is empty
-
firstEntry
Description copied from interface:RScoredSortedSetReturns the head entry (value and its score) ornullif this sorted set is empty.- Specified by:
firstEntryin interfaceRScoredSortedSet<V>- Returns:
- the head entry or
nullif this sorted set is empty
-
firstEntryAsync
Description copied from interface:RScoredSortedSetAsyncReturns the head entry (value and its score) ornullif this sorted set is empty.- Specified by:
firstEntryAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- the head entry or
nullif this sorted set is empty
-
last
Description copied from interface:RScoredSortedSetReturns the tail element ornullif this sorted set is empty.- Specified by:
lastin interfaceRScoredSortedSet<V>- Returns:
- the tail element or
nullif this sorted set is empty
-
lastAsync
Description copied from interface:RScoredSortedSetAsyncReturns the tail element ornullif this sorted set is empty.- Specified by:
lastAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- the tail element or
nullif this sorted set is empty
-
lastEntry
Description copied from interface:RScoredSortedSetReturns the tail entry (value and its score) ornullif this sorted set is empty.- Specified by:
lastEntryin interfaceRScoredSortedSet<V>- Returns:
- the tail entry or
nullif this sorted set is empty
-
lastEntryAsync
Description copied from interface:RScoredSortedSetAsyncReturns the tail entry (value and its score) ornullif this sorted set is empty.- Specified by:
lastEntryAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- the tail entry or
nullif this sorted set is empty
-
firstScore
Description copied from interface:RScoredSortedSetReturns score of the tail element or returnsnullif this sorted set is empty.- Specified by:
firstScorein interfaceRScoredSortedSet<V>- Returns:
- the tail element or
nullif this sorted set is empty
-
firstScoreAsync
Description copied from interface:RScoredSortedSetAsyncReturns score of the head element or returnsnullif this sorted set is empty.- Specified by:
firstScoreAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- the tail element or
nullif this sorted set is empty
-
lastScore
Description copied from interface:RScoredSortedSetReturns score of the head element or returnsnullif this sorted set is empty.- Specified by:
lastScorein interfaceRScoredSortedSet<V>- Returns:
- the tail element or
nullif this sorted set is empty
-
lastScoreAsync
Description copied from interface:RScoredSortedSetAsyncReturns score of the tail element or returnsnullif this sorted set is empty.- Specified by:
lastScoreAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- the tail element or
nullif this sorted set is empty
-
addAsync
Description copied from interface:RScoredSortedSetAsyncAdds element to this set, overrides previous score if it has been already added.- Specified by:
addAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
trueif element has added andfalseif not.
-
addAll
Description copied from interface:RScoredSortedSetAdds all elements contained in the specified map to this sorted set. Map contains of score mapped by object.- Specified by:
addAllin interfaceRScoredSortedSet<V>- Parameters:
objects- - map of elements to add- Returns:
- amount of added elements, not including already existing in this sorted set
-
addAllAsync
Description copied from interface:RScoredSortedSetAsyncAdds all elements contained in the specified map to this sorted set. Map contains of score mapped by object.- Specified by:
addAllAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
objects- - map of elements to add- Returns:
- amount of added elements, not including already existing in this sorted set
-
addAllIfAbsent
Description copied from interface:RScoredSortedSetAdds elements to this set only if they haven't been added before.Requires Redis 3.0.2 and higher.
- Specified by:
addAllIfAbsentin interfaceRScoredSortedSet<V>- Parameters:
objects- map of elements to add- Returns:
- amount of added elements
-
addAllIfAbsentAsync
Description copied from interface:RScoredSortedSetAsyncAdds elements to this set only if they haven't been added before.Requires Redis 3.0.2 and higher.
- Specified by:
addAllIfAbsentAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
objects- map of elements to add- Returns:
- amount of added elements
-
addAllIfExist
Description copied from interface:RScoredSortedSetAdds elements to this set only if they already exist.Requires Redis 3.0.2 and higher.
- Specified by:
addAllIfExistin interfaceRScoredSortedSet<V>- Parameters:
objects- map of elements to add- Returns:
- amount of added elements
-
addAllIfExistAsync
Description copied from interface:RScoredSortedSetAsyncAdds elements to this set only if they already exist.Requires Redis 3.0.2 and higher.
- Specified by:
addAllIfExistAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
objects- map of elements to add- Returns:
- amount of added elements
-
addAllIfGreater
Description copied from interface:RScoredSortedSetAdds elements to this set only if new scores greater than current score of existed elements.Requires Redis 6.2.0 and higher.
- Specified by:
addAllIfGreaterin interfaceRScoredSortedSet<V>- Parameters:
objects- map of elements to add- Returns:
- amount of added elements
-
addAllIfGreaterAsync
Description copied from interface:RScoredSortedSetAsyncAdds elements to this set only if new scores greater than current score of existed elements.Requires Redis 6.2.0 and higher.
- Specified by:
addAllIfGreaterAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
objects- map of elements to add- Returns:
- amount of added elements
-
addAllIfLess
Description copied from interface:RScoredSortedSetAdds elements to this set only if new scores less than current score of existed elements.Requires Redis 6.2.0 and higher.
- Specified by:
addAllIfLessin interfaceRScoredSortedSet<V>- Parameters:
objects- map of elements to add- Returns:
- amount of added elements
-
addAllIfLessAsync
Description copied from interface:RScoredSortedSetAsyncAdds elements to this set only if new scores less than current score of existed elements.Requires Redis 6.2.0 and higher.
- Specified by:
addAllIfLessAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
objects- map of elements to add- Returns:
- amount of added elements
-
tryAddAsync
Description copied from interface:RScoredSortedSetAsync- Specified by:
tryAddAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
trueif element has added andfalseif not.
-
addIfAbsent
Description copied from interface:RScoredSortedSetAdds element to this set only if has not been added before.Requires Redis 3.0.2 and higher.
- Specified by:
addIfAbsentin interfaceRScoredSortedSet<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
trueif element added andfalseif not.
-
addIfAbsentAsync
Description copied from interface:RScoredSortedSetAsyncAdds element to this set only if has not been added before.Requires Redis 3.0.2 and higher.
- Specified by:
addIfAbsentAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
score- - object scoreobject- - object itself- Returns:
trueif element added andfalseif not.
-
remove
Description copied from interface:RScoredSortedSetRemoves a single instance of the specified element from this sorted set, if it is present.- Specified by:
removein interfaceRScoredSortedSet<V>- Parameters:
object- element to be removed from this sorted set, if present- Returns:
trueif an element was removed as a result of this call
-
removeRangeByRank
public int removeRangeByRank(int startIndex, int endIndex) Description copied from interface:RScoredSortedSetRemoves values by rank range. Indexes are zero based.-1means the highest score,-2means the second highest score.- Specified by:
removeRangeByRankin interfaceRScoredSortedSet<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- number of elements removed
-
removeRangeByRankAsync
Description copied from interface:RScoredSortedSetAsyncRemoves values by rank range. Indexes are zero based.-1means the highest score,-2means the second highest score.- Specified by:
removeRangeByRankAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- number of elements removed
-
removeRangeByScore
public int removeRangeByScore(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetRemoves values by score range.- Specified by:
removeRangeByScorein interfaceRScoredSortedSet<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- number of elements removed
-
removeRangeByScoreAsync
public RFuture<Integer> removeRangeByScoreAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetAsyncRemoves values by score range.- Specified by:
removeRangeByScoreAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- number of elements removed
-
value
-
clear
public void clear()Description copied from interface:RScoredSortedSetRemoves all elements of this sorted set.- Specified by:
clearin interfaceRScoredSortedSet<V>
-
removeAsync
Description copied from interface:RScoredSortedSetAsyncRemoves a single instance of the specified element from this sorted set, if it is present.- Specified by:
removeAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
object- element to be removed from this sorted set, if present- Returns:
trueif an element was removed as a result of this call
-
replace
Description copied from interface:RScoredSortedSetReplaces a previousoldObjectwith anewObject. Returnsfalseif previous object doesn't exist.- Specified by:
replacein interfaceRScoredSortedSet<V>- Parameters:
oldValue- old objectnewValue- new object- Returns:
trueif object has been replaced otherwisefalse.
-
replaceAsync
Description copied from interface:RScoredSortedSetAsyncReplaces a previousoldObjectwith anewObject. Returnsfalseif previous object doesn't exist.- Specified by:
replaceAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
oldObject- old objectnewObject- new object- Returns:
trueif object has been replaced otherwisefalse.
-
isEmpty
public boolean isEmpty()Description copied from interface:RScoredSortedSetReturnstrueif this set is empty- Specified by:
isEmptyin interfaceRScoredSortedSet<V>- Returns:
trueif empty
-
size
public int size()Description copied from interface:RScoredSortedSetReturns size of this set.- Specified by:
sizein interfaceRScoredSortedSet<V>- Returns:
- size
-
sizeAsync
Description copied from interface:RScoredSortedSetAsyncReturns size of this set.- Specified by:
sizeAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- size
-
contains
Description copied from interface:RScoredSortedSetReturnstrueif this sorted set contains encoded state of the specified element.- Specified by:
containsin interfaceRScoredSortedSet<V>- Parameters:
object- element whose presence in this collection is to be tested- Returns:
trueif this sorted set contains the specified element andfalseotherwise
-
containsAsync
Description copied from interface:RScoredSortedSetAsyncReturnstrueif this sorted set contains encoded state of the specified element.- Specified by:
containsAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
o- element whose presence in this collection is to be tested- Returns:
trueif this sorted set contains the specified element andfalseotherwise
-
getScore
Description copied from interface:RScoredSortedSetReturns score of element ornullif it doesn't exist.- Specified by:
getScorein interfaceRScoredSortedSet<V>- Parameters:
o- - element- Returns:
- score
-
getScore
Description copied from interface:RScoredSortedSetReturns scores of elements.- Specified by:
getScorein interfaceRScoredSortedSet<V>- Parameters:
keys- - elements- Returns:
- element scores
-
getScoreAsync
Description copied from interface:RScoredSortedSetAsyncReturns score of element ornullif it doesn't exist.- Specified by:
getScoreAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
o- - element- Returns:
- score
-
getScoreAsync
Description copied from interface:RScoredSortedSetAsyncReturns scores of elements.- Specified by:
getScoreAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
elements- - elements- Returns:
- element scores
-
rank
Description copied from interface:RScoredSortedSetReturns rank of value, with the ranks ordered from low to high.- Specified by:
rankin interfaceRScoredSortedSet<V>- Parameters:
o- - object- Returns:
- rank or
nullif value does not exist
-
rankAsync
Description copied from interface:RScoredSortedSetAsyncReturns rank of value, with the scores ordered from low to high.- Specified by:
rankAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
o- - object- Returns:
- rank or
nullif value does not exist
-
rankEntry
Description copied from interface:RScoredSortedSetReturns rank and score of specifiedvalue, with the ranks ordered from low to high.- Specified by:
rankEntryin interfaceRScoredSortedSet<V>- Parameters:
o- object- Returns:
- ranked entry or
nullif value does not exist
-
rankEntryAsync
Description copied from interface:RScoredSortedSetAsyncReturns rank and score of specifiedvalue, with the ranks ordered from low to high.- Specified by:
rankEntryAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
o- object- Returns:
- ranked entry or
nullif value does not exist
-
scanIteratorAsync
public RFuture<ScanResult<Object>> scanIteratorAsync(RedisClient client, String startPos, String pattern, int count) -
iterator
-
iterator
Description copied from interface:RScoredSortedSetReturns an iterator over elements in this set. Ifpatternis not null then only elements match this pattern are loaded.- Specified by:
iteratorin interfaceRScoredSortedSet<V>- Parameters:
pattern- - search pattern- Returns:
- iterator
-
iterator
Description copied from interface:RScoredSortedSetReturns an iterator over elements in this set. Elements are loaded in batch. Batch size is defined bycountparam.- Specified by:
iteratorin interfaceRScoredSortedSet<V>- Parameters:
count- - size of elements batch- Returns:
- iterator
-
iterator
Description copied from interface:RScoredSortedSetReturns an iterator over elements in this set. Elements are loaded in batch. Batch size is defined bycountparam. If pattern is not null then only elements match this pattern are loaded.- Specified by:
iteratorin interfaceRScoredSortedSet<V>- Parameters:
pattern- - search patterncount- - size of elements batch- Returns:
- iterator
-
entryIterator
Description copied from interface:RScoredSortedSetReturns an iterator over entries (value and its score) in this set.- Specified by:
entryIteratorin interfaceRScoredSortedSet<V>- Returns:
- iterator
-
entryIterator
Description copied from interface:RScoredSortedSetReturns an iterator over entries (value and its score) in this set. Ifpatternis not null then only entries match this pattern are loaded.- Specified by:
entryIteratorin interfaceRScoredSortedSet<V>- Parameters:
pattern- search pattern- Returns:
- iterator
-
entryIterator
Description copied from interface:RScoredSortedSetReturns an iterator over entries (value and its score) in this set. Entries are loaded in batch. Batch size is defined bycountparam.- Specified by:
entryIteratorin interfaceRScoredSortedSet<V>- Parameters:
count- size of elements batch- Returns:
- iterator
-
entryIterator
Description copied from interface:RScoredSortedSetReturns an iterator over entries (value and its score) in this set. Entries are loaded in batch. Batch size is defined bycountparam. If pattern is not null then only entries match this pattern are loaded.- Specified by:
entryIteratorin interfaceRScoredSortedSet<V>- Parameters:
pattern- search patterncount- size of entries batch- Returns:
- iterator
-
entryScanIteratorAsync
public RFuture<ScanResult<Object>> entryScanIteratorAsync(RedisClient client, String startPos, String pattern, int count) -
distributedIterator
Description copied from interface:RScoredSortedSetReturns iterator over elements that match specified pattern. Iterator can be shared across multiple applications. Creating multiple iterators on the same object with this method will result in a single shared iterator. See RSet.distributedIterator(String, String, int) for creating different iterators.- Specified by:
distributedIteratorin interfaceRScoredSortedSet<V>- Parameters:
pattern- element pattern- Returns:
- shared elements iterator
-
distributedIterator
Description copied from interface:RScoredSortedSetReturns element iterator that can be shared across multiple applications. Creating multiple iterators on the same object with this method will result in a single shared iterator. See RSet.distributedIterator(String, String, int) for creating different iterators.- Specified by:
distributedIteratorin interfaceRScoredSortedSet<V>- Parameters:
count- batch size- Returns:
- shared elements iterator
-
distributedIterator
Description copied from interface:RScoredSortedSetReturns iterator over elements that match specified pattern. Iterator can be shared across multiple applications. Creating multiple iterators on the same object with this method will result in a single shared iterator. Iterator name must be resolved to the same hash slot as set name.- Specified by:
distributedIteratorin interfaceRScoredSortedSet<V>- Parameters:
iteratorName- redis object name to which cursor will be savedpattern- element patterncount- batch size- Returns:
- shared elements iterator
-
toArray
Description copied from interface:RScoredSortedSetReturns this sorted set in array of Object type.- Specified by:
toArrayin interfaceRScoredSortedSet<V>- Returns:
- array of values
-
toArray
public <T> T[] toArray(T[] a) Description copied from interface:RScoredSortedSetReturns this sorted set in array of defined type.- Specified by:
toArrayin interfaceRScoredSortedSet<V>- Type Parameters:
T- type of element- Parameters:
a- - instance of array- Returns:
- array of values
-
containsAll
Description copied from interface:RScoredSortedSetReturnstrueif this sorted set contains all of the elements in encoded state in the specified collection.- Specified by:
containsAllin interfaceRScoredSortedSet<V>- Parameters:
c- collection to be checked for containment in this sorted set- Returns:
trueif this sorted set contains all of the elements in the specified collection
-
containsAllAsync
Description copied from interface:RScoredSortedSetAsyncReturnstrueif this sorted set contains all of the elements in encoded state in the specified collection.- Specified by:
containsAllAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
c- collection to be checked for containment in this sorted set- Returns:
trueif this sorted set contains all of the elements in the specified collection
-
removeAllAsync
Description copied from interface:RScoredSortedSetAsyncRemoves all of this sorted set's elements that are also contained in the specified collection.- Specified by:
removeAllAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
c- sorted set containing elements to be removed from this collection- Returns:
trueif this sorted set changed as a result of the call
-
removeAll
Description copied from interface:RScoredSortedSetRemoves all of this sorted set's elements that are also contained in the specified collection.- Specified by:
removeAllin interfaceRScoredSortedSet<V>- Parameters:
c- collection containing elements to be removed from this collection- Returns:
trueif this sorted set changed as a result of the call
-
retainAll
Description copied from interface:RScoredSortedSetRetains only the elements in this sorted set that are contained in the specified collection.- Specified by:
retainAllin interfaceRScoredSortedSet<V>- Parameters:
c- collection containing elements to be retained in this collection- Returns:
trueif this sorted set changed as a result of the call
-
retainAllAsync
Description copied from interface:RScoredSortedSetAsyncRetains only the elements in this sorted set that are contained in the specified collection.- Specified by:
retainAllAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
c- collection containing elements to be retained in this collection- Returns:
trueif this sorted set changed as a result of the call
-
addScore
Description copied from interface:RScoredSortedSetIncreases score of specified element by value.- Specified by:
addScorein interfaceRScoredSortedSet<V>- Parameters:
object- - element whose score needs to be increasedvalue- - value- Returns:
- updated score of element
-
addScoreAsync
Description copied from interface:RScoredSortedSetAsyncIncreases score of specified element by value.- Specified by:
addScoreAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
object- - element whose score needs to be increasedvalue- - value- Returns:
- updated score of element
-
addScoreAndGetRank
Description copied from interface:RScoredSortedSetAdds score to element and returns its rank- Specified by:
addScoreAndGetRankin interfaceRScoredSortedSet<V>- Parameters:
object- - object itselfvalue- - object score- Returns:
- rank
-
addScoreAndGetRankAsync
Description copied from interface:RScoredSortedSetAsyncAdds score to element and returns its rank- Specified by:
addScoreAndGetRankAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
object- - object itselfvalue- - object score- Returns:
- rank
-
addScoreAndGetRevRank
Description copied from interface:RScoredSortedSetAdds score to element and returns its reverse rank- Specified by:
addScoreAndGetRevRankin interfaceRScoredSortedSet<V>- Parameters:
object- - object itselfvalue- - object score- Returns:
- reverse rank
-
addScoreAndGetRevRankAsync
Description copied from interface:RScoredSortedSetAsyncAdds score to element and returns its reverse rank- Specified by:
addScoreAndGetRevRankAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
object- - object itselfvalue- - object score- Returns:
- reverse rank
-
valueRange
Description copied from interface:RScoredSortedSetReturns values by rank range. Indexes are zero based.-1means the highest score,-2means the second highest score.- Specified by:
valueRangein interfaceRScoredSortedSet<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- elements
-
valueRangeAsync
Description copied from interface:RScoredSortedSetAsyncReturns values by rank range. Indexes are zero based.-1means the highest score,-2means the second highest score.Requires Redis 6.2.0 and higher.
- Specified by:
valueRangeAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- elements
-
valueRangeReversed
Description copied from interface:RScoredSortedSetReturns values by rank range in reverse order. Indexes are zero based.-1means the highest score,-2means the second highest score.- Specified by:
valueRangeReversedin interfaceRScoredSortedSet<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- elements
-
valueRangeReversedAsync
Description copied from interface:RScoredSortedSetAsyncReturns values by rank range in reverse order. Indexes are zero based.-1means the highest score,-2means the second highest score.- Specified by:
valueRangeReversedAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- elements
-
entryRange
Description copied from interface:RScoredSortedSetReturns entries (value and its score) by rank range. Indexes are zero based.-1means the highest score,-2means the second highest score.- Specified by:
entryRangein interfaceRScoredSortedSet<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- entries
-
entryRangeAsync
Description copied from interface:RScoredSortedSetAsyncReturns entries (value and its score) by rank range. Indexes are zero based.-1means the highest score,-2means the second highest score.- Specified by:
entryRangeAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- entries
-
entryRangeReversed
Description copied from interface:RScoredSortedSetReturns entries (value and its score) by rank range in reverse order. Indexes are zero based.-1means the highest score,-2means the second highest score.- Specified by:
entryRangeReversedin interfaceRScoredSortedSet<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- entries
-
entryRangeReversedAsync
Description copied from interface:RScoredSortedSetAsyncReturns entries (value and its score) by rank range in reverse order. Indexes are zero based.-1means the highest score,-2means the second highest score.- Specified by:
entryRangeReversedAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- entries
-
valueRange
public Collection<V> valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetReturns all values betweenstartScoreandendScore.- Specified by:
valueRangein interfaceRScoredSortedSet<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- values
-
valueRangeAsync
public RFuture<Collection<V>> valueRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetAsyncReturns all values betweenstartScoreandendScore.- Specified by:
valueRangeAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- values
-
valueRangeReversed
public Collection<V> valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetReturns all values betweenstartScoreandendScorein reversed order.- Specified by:
valueRangeReversedin interfaceRScoredSortedSet<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- values
-
valueRangeReversedAsync
public RFuture<Collection<V>> valueRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetAsyncReturns all values betweenstartScoreandendScorein reversed order.- Specified by:
valueRangeReversedAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- values
-
entryRange
public Collection<ScoredEntry<V>> entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetReturns all entries (value and its score) betweenstartScoreandendScore.- Specified by:
entryRangein interfaceRScoredSortedSet<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- entries
-
entryRangeAsync
public RFuture<Collection<ScoredEntry<V>>> entryRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetAsyncReturns all entries (value and its score) betweenstartScoreandendScore.- Specified by:
entryRangeAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- entries
-
valueRange
public Collection<V> valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Description copied from interface:RScoredSortedSetReturns all values betweenstartScoreandendScore.- Specified by:
valueRangein interfaceRScoredSortedSet<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusiveoffset- - offset of sorted datacount- - amount of sorted data- Returns:
- values
-
valueRangeAsync
public RFuture<Collection<V>> valueRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Description copied from interface:RScoredSortedSetAsyncReturns all values betweenstartScoreandendScore.- Specified by:
valueRangeAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusiveoffset- - offset of sorted datacount- - amount of sorted data- Returns:
- values
-
valueRangeReversed
public Collection<V> valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Description copied from interface:RScoredSortedSetReturns all values betweenstartScoreandendScorein reversed order.- Specified by:
valueRangeReversedin interfaceRScoredSortedSet<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusiveoffset- - offset of sorted datacount- - amount of sorted data- Returns:
- values
-
valueRangeReversedAsync
public RFuture<Collection<V>> valueRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Description copied from interface:RScoredSortedSetAsyncReturns all values betweenstartScoreandendScorein reversed order.- Specified by:
valueRangeReversedAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusiveoffset- - offset of sorted datacount- - amount of sorted data- Returns:
- values
-
entryRange
public Collection<ScoredEntry<V>> entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Description copied from interface:RScoredSortedSetReturns all entries (value and its score) betweenstartScoreandendScore.- Specified by:
entryRangein interfaceRScoredSortedSet<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusiveoffset- - offset of sorted datacount- - amount of sorted data- Returns:
- entries
-
entryRangeReversed
public Collection<ScoredEntry<V>> entryRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Description copied from interface:RScoredSortedSetReturns all entries (value and its score) betweenstartScoreandendScorein reversed order.- Specified by:
entryRangeReversedin interfaceRScoredSortedSet<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusiveoffset- - offset of sorted datacount- - amount of sorted data- Returns:
- entries
-
entryRangeAsync
public RFuture<Collection<ScoredEntry<V>>> entryRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Description copied from interface:RScoredSortedSetAsyncReturns all entries (value and its score) betweenstartScoreandendScore.- Specified by:
entryRangeAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusiveoffset- - offset of sorted datacount- - amount of sorted data- Returns:
- entries
-
entryRangeReversed
public Collection<ScoredEntry<V>> entryRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetReturns all entries (value and its score) betweenstartScoreandendScorein reversed order.- Specified by:
entryRangeReversedin interfaceRScoredSortedSet<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- entries
-
entryRangeReversedAsync
public RFuture<Collection<ScoredEntry<V>>> entryRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetAsyncReturns all entries (value and its score) betweenstartScoreandendScorein reversed order.- Specified by:
entryRangeReversedAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- entries
-
entryRangeReversedAsync
public RFuture<Collection<ScoredEntry<V>>> entryRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Description copied from interface:RScoredSortedSetAsyncReturns all entries (value and its score) betweenstartScoreandendScorein reversed order.- Specified by:
entryRangeReversedAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusiveoffset- - offset of sorted datacount- - amount of sorted data- Returns:
- entries
-
revRankAsync
Description copied from interface:RScoredSortedSetAsyncReturns rank of value, with the scores ordered from high to low.- Specified by:
revRankAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
o- - object- Returns:
- rank or
nullif value does not exist
-
revRankEntry
Description copied from interface:RScoredSortedSetReturns rank and score of specifiedvalue, with the ranks ordered from high to low.- Specified by:
revRankEntryin interfaceRScoredSortedSet<V>- Parameters:
o- object- Returns:
- ranked entry or
nullif value does not exist
-
revRankEntryAsync
Description copied from interface:RScoredSortedSetAsyncReturns rank and score of specifiedvalue, with the ranks ordered from high to low.- Specified by:
revRankEntryAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
o- object- Returns:
- ranked entry or
nullif value does not exist
-
revRank
Description copied from interface:RScoredSortedSetReturns rank of value, with the ranks ordered from high to low.- Specified by:
revRankin interfaceRScoredSortedSet<V>- Parameters:
o- - object- Returns:
- rank or
nullif value does not exist
-
revRankAsync
Description copied from interface:RScoredSortedSetAsyncReturns ranks of elements, with the scores ordered from high to low.- Specified by:
revRankAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
elements- - elements- Returns:
- ranks or
nullif value does not exist
-
revRank
Description copied from interface:RScoredSortedSetReturns ranks of elements, with the scores ordered from high to low.- Specified by:
revRankin interfaceRScoredSortedSet<V>- Parameters:
elements- - elements- Returns:
- ranks or
nullif value does not exist
-
count
public int count(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetReturns the number of elements with a score betweenstartScoreandendScore.- Specified by:
countin interfaceRScoredSortedSet<V>- Parameters:
startScore- - start scorestartScoreInclusive- - start score inclusiveendScore- - end scoreendScoreInclusive- - end score inclusive- Returns:
- count of elements
-
countAsync
public RFuture<Integer> countAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetAsyncReturns the number of elements with a score betweenstartScoreandendScore.- Specified by:
countAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start scorestartScoreInclusive- - start score inclusiveendScore- - end scoreendScoreInclusive- - end score inclusive- Returns:
- count
-
intersection
Description copied from interface:RScoredSortedSetIntersect provided ScoredSortedSets and store result to current ScoredSortedSet- Specified by:
intersectionin interfaceRScoredSortedSet<V>- Parameters:
names- - names of ScoredSortedSet- Returns:
- length of intersection
-
intersectionAsync
Description copied from interface:RScoredSortedSetAsyncIntersect provided ScoredSortedSets and store result to current ScoredSortedSet- Specified by:
intersectionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
names- - names of ScoredSortedSet- Returns:
- length of intersection
-
intersection
Description copied from interface:RScoredSortedSetIntersect provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSet- Specified by:
intersectionin interfaceRScoredSortedSet<V>- Parameters:
aggregate- - score aggregation modenames- - names of ScoredSortedSet- Returns:
- length of intersection
-
intersectionAsync
Description copied from interface:RScoredSortedSetAsyncIntersect provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSet- Specified by:
intersectionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
aggregate- - score aggregation modenames- - names of ScoredSortedSet- Returns:
- length of intersection
-
intersection
Description copied from interface:RScoredSortedSetIntersect provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSet- Specified by:
intersectionin interfaceRScoredSortedSet<V>- Parameters:
nameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of intersection
-
intersectionAsync
Description copied from interface:RScoredSortedSetAsyncIntersect provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSet- Specified by:
intersectionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
nameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of intersection
-
intersection
Description copied from interface:RScoredSortedSetIntersect provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSet- Specified by:
intersectionin interfaceRScoredSortedSet<V>- Parameters:
aggregate- - score aggregation modenameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of intersection
-
intersectionAsync
public RFuture<Integer> intersectionAsync(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Description copied from interface:RScoredSortedSetAsyncIntersect provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSet- Specified by:
intersectionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
aggregate- - score aggregation modenameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of intersection
-
readIntersection
Description copied from interface:RScoredSortedSetIntersect provided ScoredSortedSets with current ScoredSortedSet without state changeRequires Redis 6.2.0 and higher.
- Specified by:
readIntersectionin interfaceRScoredSortedSet<V>- Parameters:
names- - names of ScoredSortedSet- Returns:
- result of intersection
-
readIntersectionAsync
Description copied from interface:RScoredSortedSetAsyncIntersect provided ScoredSortedSets with current ScoredSortedSet without state changeRequires Redis 6.2.0 and higher.
- Specified by:
readIntersectionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
names- - names of ScoredSortedSet- Returns:
- result of intersection
-
readIntersection
Description copied from interface:RScoredSortedSetIntersect provided ScoredSortedSets with current ScoredSortedSet using defined aggregation method without state changeRequires Redis 6.2.0 and higher.
- Specified by:
readIntersectionin interfaceRScoredSortedSet<V>- Parameters:
aggregate- - score aggregation modenames- - names of ScoredSortedSet- Returns:
- result of intersection
-
readIntersectionAsync
public RFuture<Collection<V>> readIntersectionAsync(RScoredSortedSet.Aggregate aggregate, String... names) Description copied from interface:RScoredSortedSetAsyncIntersect provided ScoredSortedSets with current ScoredSortedSet using defined aggregation method without state changeRequires Redis 6.2.0 and higher.
- Specified by:
readIntersectionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
aggregate- - score aggregation modenames- - names of ScoredSortedSet- Returns:
- result of intersection
-
readIntersection
Description copied from interface:RScoredSortedSetIntersect provided ScoredSortedSets mapped to weight multiplier with current ScoredSortedSet without state changeRequires Redis 6.2.0 and higher.
- Specified by:
readIntersectionin interfaceRScoredSortedSet<V>- Parameters:
nameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- result of intersection
-
readIntersectionAsync
Description copied from interface:RScoredSortedSetAsyncIntersect provided ScoredSortedSets mapped to weight multiplier with current ScoredSortedSet without state changeRequires Redis 6.2.0 and higher.
- Specified by:
readIntersectionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
nameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- result of intersection
-
readIntersection
public Collection<V> readIntersection(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Description copied from interface:RScoredSortedSetIntersect provided ScoredSortedSets mapped to weight multiplier with current ScoredSortedSet using defined aggregation method without state changeRequires Redis 6.2.0 and higher.
- Specified by:
readIntersectionin interfaceRScoredSortedSet<V>- Parameters:
aggregate- - score aggregation modenameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- result of intersection
-
readIntersectionAsync
public RFuture<Collection<V>> readIntersectionAsync(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Description copied from interface:RScoredSortedSetAsyncIntersect provided ScoredSortedSets mapped to weight multiplier with current ScoredSortedSet using defined aggregation method without state changeRequires Redis 6.2.0 and higher.
- Specified by:
readIntersectionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
aggregate- - score aggregation modenameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- result of intersection
-
countIntersection
Description copied from interface:RScoredSortedSetCounts elements of set as a result of sets intersection with current set.Requires Redis 7.0.0 and higher.
- Specified by:
countIntersectionin interfaceRScoredSortedSet<V>- Parameters:
names- - name of sets- Returns:
- amount of elements
-
countIntersection
Description copied from interface:RScoredSortedSetCounts elements of set as a result of sets intersection with current set.Requires Redis 7.0.0 and higher.
- Specified by:
countIntersectionin interfaceRScoredSortedSet<V>- Parameters:
limit- - sets intersection limitnames- - name of sets- Returns:
- amount of elements
-
countIntersectionAsync
Description copied from interface:RScoredSortedSetAsyncCounts elements of set as a result of sets intersection with current set.Requires Redis 7.0.0 and higher.
- Specified by:
countIntersectionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
names- - name of sets- Returns:
- amount of elements
-
countIntersectionAsync
Description copied from interface:RScoredSortedSetAsyncCounts elements of set as a result of sets intersection with current set.Requires Redis 7.0.0 and higher.
- Specified by:
countIntersectionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
limit- - sets intersection limitnames- - name of sets- Returns:
- amount of elements
-
union
Description copied from interface:RScoredSortedSetUnion provided ScoredSortedSets and store result to current ScoredSortedSet- Specified by:
unionin interfaceRScoredSortedSet<V>- Parameters:
names- - names of ScoredSortedSet- Returns:
- length of union
-
unionAsync
Description copied from interface:RScoredSortedSetAsyncUnion provided ScoredSortedSets and store result to current ScoredSortedSet- Specified by:
unionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
names- - names of ScoredSortedSet- Returns:
- length of union
-
union
Description copied from interface:RScoredSortedSetUnion provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSet- Specified by:
unionin interfaceRScoredSortedSet<V>- Parameters:
aggregate- - score aggregation modenames- - names of ScoredSortedSet- Returns:
- length of union
-
unionAsync
Description copied from interface:RScoredSortedSetAsyncUnion provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSet- Specified by:
unionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
aggregate- - score aggregation modenames- - names of ScoredSortedSet- Returns:
- length of union
-
union
Description copied from interface:RScoredSortedSetUnion provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSet- Specified by:
unionin interfaceRScoredSortedSet<V>- Parameters:
nameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of union
-
unionAsync
Description copied from interface:RScoredSortedSetAsyncUnion provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSet- Specified by:
unionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
nameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of union
-
union
Description copied from interface:RScoredSortedSetUnion provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSet- Specified by:
unionin interfaceRScoredSortedSet<V>- Parameters:
aggregate- - score aggregation modenameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of union
-
unionAsync
public RFuture<Integer> unionAsync(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Description copied from interface:RScoredSortedSetAsyncUnion provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSet- Specified by:
unionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
aggregate- - score aggregation modenameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of union
-
readUnion
Description copied from interface:RScoredSortedSetUnion ScoredSortedSets specified by name with current ScoredSortedSet without state change.Requires Redis 6.2.0 and higher.
- Specified by:
readUnionin interfaceRScoredSortedSet<V>- Parameters:
names- - names of ScoredSortedSet- Returns:
- result of union
-
readUnionAsync
Description copied from interface:RScoredSortedSetAsyncUnion ScoredSortedSets specified by name with current ScoredSortedSet without state change.Requires Redis 6.2.0 and higher.
- Specified by:
readUnionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
names- - names of ScoredSortedSet- Returns:
- result of union
-
readUnion
Description copied from interface:RScoredSortedSetUnion ScoredSortedSets specified by name with defined aggregation method and current ScoredSortedSet without state change.Requires Redis 6.2.0 and higher.
- Specified by:
readUnionin interfaceRScoredSortedSet<V>- Parameters:
aggregate- - score aggregation modenames- - names of ScoredSortedSet- Returns:
- result of union
-
readUnionAsync
Description copied from interface:RScoredSortedSetAsyncUnion ScoredSortedSets specified by name with defined aggregation method and current ScoredSortedSet without state change.Requires Redis 6.2.0 and higher.
- Specified by:
readUnionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
aggregate- - score aggregation modenames- - names of ScoredSortedSet- Returns:
- result of union
-
readUnion
Description copied from interface:RScoredSortedSetUnion provided ScoredSortedSets mapped to weight multiplier and current ScoredSortedSet without state change.Requires Redis 6.2.0 and higher.
- Specified by:
readUnionin interfaceRScoredSortedSet<V>- Parameters:
nameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- result of union
-
readUnionAsync
Description copied from interface:RScoredSortedSetAsyncUnion provided ScoredSortedSets mapped to weight multiplier and current ScoredSortedSet without state change.Requires Redis 6.2.0 and higher.
- Specified by:
readUnionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
nameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- result of union
-
readUnion
public Collection<V> readUnion(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Description copied from interface:RScoredSortedSetUnion provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and current ScoredSortedSet without state changeRequires Redis 6.2.0 and higher.
- Specified by:
readUnionin interfaceRScoredSortedSet<V>- Parameters:
aggregate- - score aggregation modenameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- result of union
-
readUnionAsync
public RFuture<Collection<V>> readUnionAsync(RScoredSortedSet.Aggregate aggregate, Map<String, Double> nameWithWeight) Description copied from interface:RScoredSortedSetAsyncUnion provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and current ScoredSortedSet without state changeRequires Redis 6.2.0 and higher.
- Specified by:
readUnionAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
aggregate- - score aggregation modenameWithWeight- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- result of union
-
readSort
Description copied from interface:RSortableRead data in sorted view -
readSortAsync
Description copied from interface:RSortableAsyncRead data in sorted view- Specified by:
readSortAsyncin interfaceRSortableAsync<V>- Parameters:
order- for sorted data- Returns:
- sorted collection
-
readSort
Description copied from interface:RSortableRead data in sorted view -
readSortAsync
Description copied from interface:RSortableAsyncRead data in sorted view- Specified by:
readSortAsyncin interfaceRSortableAsync<V>- Parameters:
order- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection
-
readSort
Description copied from interface:RSortableRead data in sorted view -
readSortAsync
Description copied from interface:RSortableAsyncRead data in sorted view- Specified by:
readSortAsyncin interfaceRSortableAsync<V>- Parameters:
byPattern- that is used to generate the keys that are used for sortingorder- for sorted data- Returns:
- sorted collection
-
readSort
Description copied from interface:RSortableRead data in sorted view -
readSortAsync
Description copied from interface:RSortableAsyncRead data in sorted view- Specified by:
readSortAsyncin interfaceRSortableAsync<V>- Parameters:
byPattern- that is used to generate the keys that are used for sortingorder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection
-
readSort
Description copied from interface:RSortableRead data in sorted view -
readSortAsync
public <T> RFuture<Collection<T>> readSortAsync(String byPattern, List<String> getPatterns, SortOrder order) Description copied from interface:RSortableAsyncRead data in sorted view- Specified by:
readSortAsyncin interfaceRSortableAsync<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted data- Returns:
- sorted collection
-
readSort
public <T> Collection<T> readSort(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Description copied from interface:RSortableRead data in sorted view- Specified by:
readSortin interfaceRSortable<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection
-
readSortAsync
public <T> RFuture<Collection<T>> readSortAsync(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Description copied from interface:RSortableAsyncRead data in sorted view- Specified by:
readSortAsyncin interfaceRSortableAsync<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection
-
readSortAlpha
Description copied from interface:RSortableRead data in sorted view lexicographically- Specified by:
readSortAlphain interfaceRSortable<V>- Parameters:
order- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
Description copied from interface:RSortableRead data in sorted view lexicographically- Specified by:
readSortAlphain interfaceRSortable<V>- Parameters:
order- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
Description copied from interface:RSortableRead data in sorted view lexicographically- Specified by:
readSortAlphain interfaceRSortable<V>- Parameters:
byPattern- that is used to generate the keys that are used for sortingorder- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
Description copied from interface:RSortableRead data in sorted view lexicographically- Specified by:
readSortAlphain interfaceRSortable<V>- Parameters:
byPattern- that is used to generate the keys that are used for sortingorder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
Description copied from interface:RSortableRead data in sorted view lexicographically- Specified by:
readSortAlphain interfaceRSortable<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
public <T> Collection<T> readSortAlpha(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Description copied from interface:RSortableRead data in sorted view lexicographically- Specified by:
readSortAlphain interfaceRSortable<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
Description copied from interface:RSortableAsyncRead data in sorted view lexicographically- Specified by:
readSortAlphaAsyncin interfaceRSortableAsync<V>- Parameters:
order- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
Description copied from interface:RSortableAsyncRead data in sorted view lexicographically- Specified by:
readSortAlphaAsyncin interfaceRSortableAsync<V>- Parameters:
order- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
Description copied from interface:RSortableAsyncRead data in sorted view lexicographically- Specified by:
readSortAlphaAsyncin interfaceRSortableAsync<V>- Parameters:
byPattern- that is used to generate the keys that are used for sortingorder- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
Description copied from interface:RSortableAsyncRead data in sorted view lexicographically- Specified by:
readSortAlphaAsyncin interfaceRSortableAsync<V>- Parameters:
byPattern- that is used to generate the keys that are used for sortingorder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
public <T> RFuture<Collection<T>> readSortAlphaAsync(String byPattern, List<String> getPatterns, SortOrder order) Description copied from interface:RSortableAsyncRead data in sorted view lexicographically- Specified by:
readSortAlphaAsyncin interfaceRSortableAsync<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
public <T> RFuture<Collection<T>> readSortAlphaAsync(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Description copied from interface:RSortableAsyncRead data in sorted view lexicographically- Specified by:
readSortAlphaAsyncin interfaceRSortableAsync<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection lexicographically
-
sortTo
Description copied from interface:RSortableSort data and store todestNamelist -
sortToAsync
Description copied from interface:RSortableAsyncSort data and store todestNamelist- Specified by:
sortToAsyncin interfaceRSortableAsync<V>- Parameters:
destName- list object destinationorder- for sorted data- Returns:
- length of sorted data
-
sortTo
Description copied from interface:RSortableSort data and store todestNamelist -
sortToAsync
Description copied from interface:RSortableAsyncSort data and store todestNamelist- Specified by:
sortToAsyncin interfaceRSortableAsync<V>- Parameters:
destName- list object destinationorder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- length of sorted data
-
sortTo
Description copied from interface:RSortableSort data and store todestNamelist -
sortTo
Description copied from interface:RSortableSort data and store todestNamelist -
sortToAsync
Description copied from interface:RSortableAsyncSort data and store todestNamelist- Specified by:
sortToAsyncin interfaceRSortableAsync<V>- Parameters:
destName- list object destinationbyPattern- that is used to generate the keys that are used for sortingorder- for sorted data- Returns:
- length of sorted data
-
sortToAsync
public RFuture<Integer> sortToAsync(String destName, String byPattern, SortOrder order, int offset, int count) Description copied from interface:RSortableAsyncSort data and store todestNamelist- Specified by:
sortToAsyncin interfaceRSortableAsync<V>- Parameters:
destName- list object destinationbyPattern- that is used to generate the keys that are used for sortingorder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- length of sorted data
-
sortTo
Description copied from interface:RSortableSort data and store todestNamelist -
sortToAsync
public RFuture<Integer> sortToAsync(String destName, String byPattern, List<String> getPatterns, SortOrder order) Description copied from interface:RSortableAsyncSort data and store todestNamelist- Specified by:
sortToAsyncin interfaceRSortableAsync<V>- Parameters:
destName- list object destinationbyPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted data- Returns:
- length of sorted data
-
sortTo
public int sortTo(String destName, String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Description copied from interface:RSortableSort data and store todestNamelist- Specified by:
sortToin interfaceRSortable<V>- Parameters:
destName- list object destinationbyPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- length of sorted data
-
sortToAsync
public RFuture<Integer> sortToAsync(String destName, String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Description copied from interface:RSortableAsyncSort data and store todestNamelist- Specified by:
sortToAsyncin interfaceRSortableAsync<V>- Parameters:
destName- list object destinationbyPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- length of sorted data
-
readDiff
Description copied from interface:RScoredSortedSetDiff ScoredSortedSets specified by name with current ScoredSortedSet without state change.Requires Redis 6.2.0 and higher.
- Specified by:
readDiffin interfaceRScoredSortedSet<V>- Parameters:
names- - name of sets- Returns:
- result of diff
-
readDiffAsync
Description copied from interface:RScoredSortedSetAsyncDiff ScoredSortedSets specified by name with current ScoredSortedSet without state change.Requires Redis 6.2.0 and higher.
- Specified by:
readDiffAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
names- - name of sets- Returns:
- result of diff
-
diff
Description copied from interface:RScoredSortedSetDiff provided ScoredSortedSets and store result to current ScoredSortedSetRequires Redis 6.2.0 and higher.
- Specified by:
diffin interfaceRScoredSortedSet<V>- Parameters:
names- - name of sets- Returns:
- length of diff
-
diffAsync
Description copied from interface:RScoredSortedSetAsyncDiff provided ScoredSortedSets and store result to current ScoredSortedSetRequires Redis 6.2.0 and higher.
- Specified by:
diffAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
names- - name of sets- Returns:
- length of diff
-
rangeTo
Description copied from interface:RScoredSortedSetStores to defined ScoredSortedSet values by rank range. Indexes are zero based.-1means the highest score,-2means the second highest score.Requires Redis 6.2.0 and higher.
- Specified by:
rangeToin interfaceRScoredSortedSet<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- elements
-
rangeTo
public int rangeTo(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetStores to defined ScoredSortedSet values betweenstartScoreandendScore.Requires Redis 6.2.0 and higher.
- Specified by:
rangeToin interfaceRScoredSortedSet<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- values
-
rangeTo
public int rangeTo(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Description copied from interface:RScoredSortedSetStores to defined ScoredSortedSet values betweenstartScoreandendScore.Requires Redis 6.2.0 and higher.
- Specified by:
rangeToin interfaceRScoredSortedSet<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusiveoffset- - offset of sorted datacount- - amount of sorted data- Returns:
- values
-
revRangeTo
Description copied from interface:RScoredSortedSetStores to defined ScoredSortedSet values in reversed order by rank range. Indexes are zero based.-1means the highest score,-2means the second highest score.Requires Redis 6.2.0 and higher.
- Specified by:
revRangeToin interfaceRScoredSortedSet<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- elements
-
revRangeTo
public int revRangeTo(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetStores to defined ScoredSortedSet values in reversed order betweenstartScoreandendScore.Requires Redis 6.2.0 and higher.
- Specified by:
revRangeToin interfaceRScoredSortedSet<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- values
-
revRangeTo
public int revRangeTo(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Description copied from interface:RScoredSortedSetStores to defined ScoredSortedSet values in reversed order betweenstartScoreandendScore.Requires Redis 6.2.0 and higher.
- Specified by:
revRangeToin interfaceRScoredSortedSet<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusiveoffset- - offset of sorted datacount- - amount of sorted data- Returns:
- values
-
revRangeToAsync
Description copied from interface:RScoredSortedSetAsyncStores to defined ScoredSortedSet values in reversed order by rank range. Indexes are zero based.-1means the highest score,-2means the second highest score.- Specified by:
revRangeToAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- elements
-
revRangeToAsync
public RFuture<Integer> revRangeToAsync(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetAsyncStores to defined ScoredSortedSet values in reversed order betweenstartScoreandendScore.Requires Redis 6.2.0 and higher.
- Specified by:
revRangeToAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- values
-
revRangeToAsync
public RFuture<Integer> revRangeToAsync(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Description copied from interface:RScoredSortedSetAsyncStores to defined ScoredSortedSet values in reversed order betweenstartScoreandendScore.Requires Redis 6.2.0 and higher.
- Specified by:
revRangeToAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusiveoffset- - offset of sorted datacount- - amount of sorted data- Returns:
- values
-
rangeToAsync
Description copied from interface:RScoredSortedSetAsyncStores to defined ScoredSortedSet values by rank range. Indexes are zero based.-1means the highest score,-2means the second highest score.- Specified by:
rangeToAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- elements
-
rangeToAsync
public RFuture<Integer> rangeToAsync(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive) Description copied from interface:RScoredSortedSetAsyncStores to defined ScoredSortedSet values betweenstartScoreandendScore.Requires Redis 6.2.0 and higher.
- Specified by:
rangeToAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusive- Returns:
- values
-
rangeToAsync
public RFuture<Integer> rangeToAsync(String destName, double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count) Description copied from interface:RScoredSortedSetAsyncStores to defined ScoredSortedSet values betweenstartScoreandendScore.Requires Redis 6.2.0 and higher.
- Specified by:
rangeToAsyncin interfaceRScoredSortedSetAsync<V>- Parameters:
startScore- - start score. UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersstartScoreInclusive- - start score inclusiveendScore- - end score UseDouble.POSITIVE_INFINITYorDouble.NEGATIVE_INFINITYto define infinity numbersendScoreInclusive- - end score inclusiveoffset- - offset of sorted datacount- - amount of sorted data- Returns:
- values
-
takeFirstAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the head element waiting if necessary for an element to become available.- Specified by:
takeFirstAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- the head element
-
takeLastAsync
Description copied from interface:RScoredSortedSetAsyncRemoves and returns the tail element waiting if necessary for an element to become available.- Specified by:
takeLastAsyncin interfaceRScoredSortedSetAsync<V>- Returns:
- the tail element
-
takeFirst
Description copied from interface:RScoredSortedSetRemoves and returns the head element waiting if necessary for an element to become available.- Specified by:
takeFirstin interfaceRScoredSortedSet<V>- Returns:
- the head element
-
takeLast
Description copied from interface:RScoredSortedSetRemoves and returns the tail element waiting if necessary for an element to become available.- Specified by:
takeLastin interfaceRScoredSortedSet<V>- Returns:
- the tail element
-
subscribeOnFirstElements
Description copied from interface:RScoredSortedSetUseRScoredSortedSet.subscribeOnFirstElements(Function)instead.- Specified by:
subscribeOnFirstElementsin interfaceRScoredSortedSet<V>- Parameters:
consumer- - queue elements listener- Returns:
- listenerId - id of listener
-
subscribeOnLastElements
Description copied from interface:RScoredSortedSetUseRScoredSortedSet.subscribeOnLastElements(Function)instead.- Specified by:
subscribeOnLastElementsin interfaceRScoredSortedSet<V>- Parameters:
consumer- - queue elements listener- Returns:
- listenerId - id of listener
-
subscribeOnFirstElements
Description copied from interface:RScoredSortedSetSubscribes on first elements appeared in this set. Continuously invokesRScoredSortedSetAsync.takeFirstAsync()method to get a new element.NOTE: don't call blocking methods in the elements listener
- Specified by:
subscribeOnFirstElementsin interfaceRScoredSortedSet<V>- Parameters:
consumer- - queue elements listener- Returns:
- listenerId - id of listener
-
subscribeOnLastElements
Description copied from interface:RScoredSortedSetSubscribes on last elements appeared in this set. Continuously invokesRScoredSortedSetAsync.takeLastAsync()method to get a new element.NOTE: don't call blocking methods in the elements listener
- Specified by:
subscribeOnLastElementsin interfaceRScoredSortedSet<V>- Parameters:
consumer- - queue elements listener- Returns:
- listenerId - id of listener
-
unsubscribe
public void unsubscribe(int listenerId) Description copied from interface:RScoredSortedSetUn-subscribes defined listener.- Specified by:
unsubscribein interfaceRScoredSortedSet<V>- Parameters:
listenerId- - id of listener
-
stream
Description copied from interface:RScoredSortedSetReturns stream of elements in this set. Elements are loaded in batch. Batch size is 10.- Specified by:
streamin interfaceRScoredSortedSet<V>- Returns:
- stream of elements
-
stream
Description copied from interface:RScoredSortedSetReturns stream of elements in this set. Ifpatternis not null then only elements match this pattern are loaded.- Specified by:
streamin interfaceRScoredSortedSet<V>- Parameters:
pattern- - search pattern- Returns:
- stream of elements
-
stream
Description copied from interface:RScoredSortedSetReturns stream of elements in this set. Elements are loaded in batch. Batch size is defined bycountparam.- Specified by:
streamin interfaceRScoredSortedSet<V>- Parameters:
count- - size of elements batch- Returns:
- stream of elements
-
stream
Description copied from interface:RScoredSortedSetReturns stream of elements in this set. Elements are loaded in batch. Batch size is defined bycountparam. If pattern is not null then only elements match this pattern are loaded.- Specified by:
streamin interfaceRScoredSortedSet<V>- Parameters:
pattern- - search patterncount- - size of elements batch- Returns:
- stream of elements
-
addListener
Description copied from interface:RObjectAdds object event listener- Specified by:
addListenerin interfaceRObject- Specified by:
addListenerin interfaceRScoredSortedSet<V>- Overrides:
addListenerin classRedissonObject- Parameters:
listener- - object event listener- Returns:
- listener id
- See Also:
-
addListenerAsync
Description copied from interface:RObjectAsyncAdds object event listener- Specified by:
addListenerAsyncin interfaceRObjectAsync- Specified by:
addListenerAsyncin interfaceRScoredSortedSetAsync<V>- Overrides:
addListenerAsyncin classRedissonObject- Parameters:
listener- - object event listener- Returns:
- listener id
- See Also:
-
removeListener
public void removeListener(int listenerId) Description copied from interface:RObjectRemoves object event listener- Specified by:
removeListenerin interfaceRObject- Overrides:
removeListenerin classRedissonObject- Parameters:
listenerId- - listener id
-
removeListenerAsync
Description copied from interface:RObjectAsyncRemoves object event listener- Specified by:
removeListenerAsyncin interfaceRObjectAsync- Overrides:
removeListenerAsyncin classRedissonObject- Parameters:
listenerId- - listener id
-
expire
Description copied from interface:RExpirableUseRExpirable.expire(Duration)instead- Specified by:
expirein interfaceRExpirable- Parameters:
timeToLive- - timeout before object will be deletedtimeUnit- - timeout time unit- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Duration)instead- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
timeToLive- - timeout before object will be deletedtimeUnit- - timeout time unit- Returns:
trueif the timeout was set andfalseif not
-
expireAt
public boolean expireAt(long timestamp) Description copied from interface:RExpirableUseRExpirable.expire(Instant)instead- Specified by:
expireAtin interfaceRExpirable- Parameters:
timestamp- - expire date in milliseconds (Unix timestamp)- Returns:
trueif the timeout was set andfalseif not
-
expireAtAsync
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Instant)instead- Specified by:
expireAtAsyncin interfaceRExpirableAsync- Parameters:
timestamp- - expire date in milliseconds (Unix timestamp)- Returns:
trueif the timeout was set andfalseif not
-
expire
Description copied from interface:RExpirableSets an expiration date for this object. When expire date comes the key will automatically be deleted.- Specified by:
expirein interfaceRExpirable- Parameters:
instant- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfSet
Description copied from interface:RExpirableSets an expiration date for this object only if it has been already set. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfSetAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it has been already set. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSet
Description copied from interface:RExpirableSets an expiration date for this object only if it hasn't been set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSetAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it hasn't been set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreater
Description copied from interface:RExpirableSets an expiration date for this object only if it's greater than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreaterAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it's greater than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfLess
Description copied from interface:RExpirableSets an expiration date for this object only if it's less than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfLessAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it's less than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
Description copied from interface:RExpirableAsyncSet an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
instant- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expire
Description copied from interface:RExpirableSets a timeout for this object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expirein interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
Description copied from interface:RExpirableAsyncSet a timeout for object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireAt
Description copied from interface:RExpirableUseRExpirable.expire(Instant)instead- Specified by:
expireAtin interfaceRExpirable- Parameters:
timestamp- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expireAtAsync
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Instant)instead- Specified by:
expireAtAsyncin interfaceRExpirableAsync- Parameters:
timestamp- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfSet
Description copied from interface:RExpirableSets a timeout for this object only if it has been already set. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfSetAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it has been already set. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSet
Description copied from interface:RExpirableSets a timeout for this object only if it hasn't been set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSetAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it hasn't been set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreater
Description copied from interface:RExpirableSets a timeout for this object only if it's greater than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreaterAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it's greater than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfLess
Description copied from interface:RExpirableSets a timeout for this object only if it's less than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfLessAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it's less than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
clearExpire
public boolean clearExpire()Description copied from interface:RExpirableClear an expire timeout or expire date for object.- Specified by:
clearExpirein interfaceRExpirable- Returns:
trueif timeout was removedfalseif object does not exist or does not have an associated timeout
-
clearExpireAsync
Description copied from interface:RExpirableAsyncClear an expire timeout or expire date for object in async mode. Object will not be deleted.- Specified by:
clearExpireAsyncin interfaceRExpirableAsync- Returns:
trueif the timeout was cleared andfalseif not
-
remainTimeToLive
public long remainTimeToLive()Description copied from interface:RExpirableRemaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLivein interfaceRExpirable- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
remainTimeToLiveAsync
Description copied from interface:RExpirableAsyncRemaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLiveAsyncin interfaceRExpirableAsync- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
getExpireTime
public long getExpireTime()Description copied from interface:RExpirableExpiration time of Redisson object that has a timeoutRequires Redis 7.0.0 and higher.
- Specified by:
getExpireTimein interfaceRExpirable- Returns:
- expiration time
-
getExpireTimeAsync
Description copied from interface:RExpirableAsyncExpiration time of Redisson object that has a timeoutRequires Redis 7.0.0 and higher.
- Specified by:
getExpireTimeAsyncin interfaceRExpirableAsync- Returns:
- expiration time
-
expireAsync
-
expireAtAsync
-
clearExpireAsync
-