Package org.redisson.api
Interface RLexSortedSetAsync
-
- All Superinterfaces:
>
,RExpirableAsync
,RObjectAsync
- All Known Subinterfaces:
RLexSortedSet
- All Known Implementing Classes:
RedissonLexSortedSet
public interface RLexSortedSetAsync extends >
Async interface for sorted set contained values of String type.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description >
fromElement, boolean fromInclusive, toElement, boolean toInclusive)
Returns the number of elements betweenfromElement
andtoElement
.>
toElement, boolean toInclusive)
Returns the number of head values ending withtoElement
.>
fromElement, boolean fromInclusive)
Returns the number of tail values starting withfromElement
.>
firstAsync()
Returns the first element.>
lastAsync()
Returns the last element.>
pollFirstAsync()
Removes and returns the head element ornull
if this sorted set is empty.>
pollLastAsync()
Removes and returns the tail element ornull
if this sorted set is empty.<>>
rangeAsync(int startIndex, int endIndex)
Returns values by rank range.<>>
fromElement, boolean fromInclusive, toElement, boolean toInclusive)
Returns values range starting withfromElement
and ending withtoElement
.<>>
fromElement, boolean fromInclusive, toElement, boolean toInclusive, int offset, int count)
Returns values range starting withfromElement
and ending withtoElement
.<>>
toElement, boolean toInclusive)
Returns head values range ending withtoElement
.<>>
toElement, boolean toInclusive, int offset, int count)
Returns head values range ending withtoElement
.<>>
toElement, boolean toInclusive)
Returns head values range in reverse order ending withtoElement
.<>>
toElement, boolean toInclusive, int offset, int count)
Returns head values range in reverse order ending withtoElement
.<>>
fromElement, boolean fromInclusive, toElement, boolean toInclusive)
Returns values range in reverse order starting withfromElement
and ending withtoElement
.<>>
fromElement, boolean fromInclusive, toElement, boolean toInclusive, int offset, int count)
Returns values range in reverse order starting withfromElement
and ending withtoElement
.<>>
fromElement, boolean fromInclusive)
Returns tail values range starting withfromElement
.<>>
fromElement, boolean fromInclusive, int offset, int count)
Returns tail values range starting withfromElement
.<>>
fromElement, boolean fromInclusive)
Returns tail values range in reverse order starting withfromElement
.<>>
fromElement, boolean fromInclusive, int offset, int count)
Returns tail values range in reverse order starting withfromElement
.>
o)
Returns rank of the element<>>
readAllAsync()
Read all values at once.>
fromElement, boolean fromInclusive, toElement, boolean toInclusive)
Removes values range starting withfromElement
and ending withtoElement
.>
toElement, boolean toInclusive)
Removes head values range ending withtoElement
.>
fromElement, boolean fromInclusive)
Removes tail values range starting withfromElement
.>
o)
Returns rank of value, with the scores ordered from high to low.-
Methods inherited from interface org.redisson.api.RCollectionAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
-
-
-
Method Detail
-
pollLastAsync
> pollLastAsync()
Removes and returns the tail element ornull
if this sorted set is empty.- Returns:
- the tail element or
null
if this sorted set is empty
-
pollFirstAsync
> pollFirstAsync()
Removes and returns the head element ornull
if this sorted set is empty.- Returns:
- the head element,
or
null
if this sorted set is empty
-
firstAsync
> firstAsync()
Returns the first element.- Returns:
- element
-
lastAsync
> lastAsync()
Returns the last element.- Returns:
- element
-
readAllAsync
<>> readAllAsync()
Read all values at once.- Returns:
- collection of values
-
removeRangeAsync
> removeRangeAsync( fromElement, boolean fromInclusive, toElement, boolean toInclusive)
Removes values range starting withfromElement
and ending withtoElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- number of elements removed
-
removeRangeTailAsync
> removeRangeTailAsync( fromElement, boolean fromInclusive)
Removes tail values range starting withfromElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusive- Returns:
- number of elements removed
-
removeRangeHeadAsync
> removeRangeHeadAsync( toElement, boolean toInclusive)
Removes head values range ending withtoElement
.- Parameters:
toElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- number of elements removed
-
countTailAsync
> countTailAsync( fromElement, boolean fromInclusive)
Returns the number of tail values starting withfromElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusive- Returns:
- number of elements
-
countHeadAsync
> countHeadAsync( toElement, boolean toInclusive)
Returns the number of head values ending withtoElement
.- Parameters:
toElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- number of elements
-
rangeTailAsync
<>> rangeTailAsync( fromElement, boolean fromInclusive)
Returns tail values range starting withfromElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusive- Returns:
- collection of elements
-
rangeHeadAsync
<>> rangeHeadAsync( toElement, boolean toInclusive)
Returns head values range ending withtoElement
.- Parameters:
toElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- collection of elements
-
rangeAsync
<>> rangeAsync( fromElement, boolean fromInclusive, toElement, boolean toInclusive)
Returns values range starting withfromElement
and ending withtoElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- collection of elements
-
rangeTailAsync
<>> rangeTailAsync( fromElement, boolean fromInclusive, int offset, int count)
Returns tail values range starting withfromElement
. Returned collection limited bycount
and starts withoffset
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusiveoffset
- - offset of result collectioncount
- - amount of result collection- Returns:
- collection of elements
-
rangeHeadAsync
<>> rangeHeadAsync( toElement, boolean toInclusive, int offset, int count)
Returns head values range ending withtoElement
. Returned collection limited bycount
and starts withoffset
.- Parameters:
toElement
- - end elementtoInclusive
- - end element inclusiveoffset
- - offset of result collectioncount
- - amount of result collection- Returns:
- collection of elements
-
rangeAsync
<>> rangeAsync( fromElement, boolean fromInclusive, toElement, boolean toInclusive, int offset, int count)
Returns values range starting withfromElement
and ending withtoElement
. Returned collection limited bycount
and starts withoffset
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusiveoffset
- - offset of result collectioncount
- - amount of result collection- Returns:
- collection of elements
-
rangeTailReversedAsync
<>> rangeTailReversedAsync( fromElement, boolean fromInclusive)
Returns tail values range in reverse order starting withfromElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusive- Returns:
- collection of elements
-
rangeHeadReversedAsync
<>> rangeHeadReversedAsync( toElement, boolean toInclusive)
Returns head values range in reverse order ending withtoElement
.- Parameters:
toElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- collection of elements
-
rangeReversedAsync
<>> rangeReversedAsync( fromElement, boolean fromInclusive, toElement, boolean toInclusive)
Returns values range in reverse order starting withfromElement
and ending withtoElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- collection of elements
-
rangeTailReversedAsync
<>> rangeTailReversedAsync( fromElement, boolean fromInclusive, int offset, int count)
Returns tail values range in reverse order starting withfromElement
. Returned collection limited bycount
and starts withoffset
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusiveoffset
- - offset of result collectioncount
- - amount of result collection- Returns:
- collection of elements
-
rangeHeadReversedAsync
<>> rangeHeadReversedAsync( toElement, boolean toInclusive, int offset, int count)
Returns head values range in reverse order ending withtoElement
. Returned collection limited bycount
and starts withoffset
.- Parameters:
toElement
- - end elementtoInclusive
- - end element inclusiveoffset
- - offset of result collectioncount
- - amount of result collection- Returns:
- collection of elements
-
rangeReversedAsync
<>> rangeReversedAsync( fromElement, boolean fromInclusive, toElement, boolean toInclusive, int offset, int count)
Returns values range in reverse order starting withfromElement
and ending withtoElement
. Returned collection limited bycount
and starts withoffset
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusiveoffset
- - offset of result collectioncount
- - amount of result collection- Returns:
- collection of elements
-
countAsync
> countAsync( fromElement, boolean fromInclusive, toElement, boolean toInclusive)
Returns the number of elements betweenfromElement
andtoElement
.- Parameters:
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusive- Returns:
- number of elements
-
rankAsync
> rankAsync( o)
Returns rank of the element- Parameters:
o
- - element to rank- Returns:
- rank or
null
if element does not exist
-
rangeAsync
<>> rangeAsync(int startIndex, int endIndex)
Returns values by rank range. Indexes are zero based.-1
means the highest score,-2
means the second highest score.- Parameters:
startIndex
- - start indexendIndex
- - end index- Returns:
- collection of elements
-
revRankAsync
> revRankAsync( o)
Returns rank of value, with the scores ordered from high to low.- Parameters:
o
- - value- Returns:
- rank or
null
if value does not exist
-
-