Package org.redisson
Class RedissonSortedSet<V>
-
- org.redisson.RedissonObject
-
- org.redisson.RedissonSortedSet<V>
-
- Type Parameters:
V
- value type
- All Implemented Interfaces:
<V>
,<V>
,<V>
,<V>
,RObject
,RObjectAsync
,RSortedSet<V>
public class RedissonSortedSet<V> extends RedissonObject implements RSortedSet<V>
- Author:
- Nikita Koksharov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RedissonSortedSet.BinarySearchResult<V>
-
Field Summary
-
Fields inherited from class org.redisson.RedissonObject
codec, name
-
-
Constructor Summary
Constructors Modifier Constructor Description RedissonSortedSet(Codec codec, CommandAsyncExecutor commandExecutor, name, Redisson redisson)
protected
RedissonSortedSet(CommandAsyncExecutor commandExecutor, name, RedissonClient redisson)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(V value)
boolean
<? extends V> c)
>
addAsync(V value)
RedissonSortedSet.BinarySearchResult<V>
binarySearch(V value, Codec codec)
void
clear()
<? super V>
comparator()
boolean
o)
boolean
<?> c)
V
first()
<V>
headSet(V toElement)
boolean
isEmpty()
<V>
iterator()
V
last()
<KOut,VOut>
RCollectionMapReduce<V,KOut,VOut>mapReduce()
ReturnsRMapReduce
object associated with this object<V>
readAll()
<V>>
readAllAsync()
boolean
value)
boolean
<?> c)
>
value)
boolean
<?> c)
int
size()
<V>
subSet(V fromElement, V toElement)
<V>
tailSet(V fromElement)
[]
toArray()
<T> T[]
toArray(T[] a)
toString()
boolean
<? super V> comparator)
Sets new comparator only if current set is empty-
Methods inherited from class org.redisson.RedissonObject
addListener, addListener, addListenerAsync, addListenerAsync, copy, copyAsync, delete, deleteAsync, deleteAsync, dump, dumpAsync, encode, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getIdleTime, getIdleTimeAsync, getLockByMapKey, getLockByValue, getName, getRawName, getRawName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListenerAsync, removeListenersAsync, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, setName, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, touch, touchAsync, unlink, unlinkAsync
-
Methods inherited from interface org.redisson.api.RObject
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
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
-
-
-
-
Constructor Detail
-
RedissonSortedSet
protected RedissonSortedSet(CommandAsyncExecutor commandExecutor, name, RedissonClient redisson)
-
RedissonSortedSet
public RedissonSortedSet(Codec codec, CommandAsyncExecutor commandExecutor, name, Redisson redisson)
-
-
Method Detail
-
mapReduce
public <KOut,VOut> RCollectionMapReduce<V,KOut,VOut> mapReduce()
Description copied from interface:RSortedSet
ReturnsRMapReduce
object associated with this object- Specified by:
mapReduce
in interfaceRSortedSet<V>
- Type Parameters:
KOut
- output keyVOut
- output value- Returns:
- MapReduce instance
-
readAll
public <V> readAll()
- Specified by:
readAll
in interfaceRSortedSet<V>
-
readAllAsync
public <V>> readAllAsync()
- Specified by:
readAllAsync
in interfaceRSortedSet<V>
-
iterator
public <V> iterator()
-
toArray
public <T> T[] toArray(T[] a)
-
addAsync
public > addAsync(V value)
- Specified by:
addAsync
in interfaceRSortedSet<V>
-
removeAsync
public > removeAsync( value)
- Specified by:
removeAsync
in interfaceRSortedSet<V>
-
containsAll
public boolean containsAll(<?> c)
-
addAll
public boolean addAll(<? extends V> c)
-
retainAll
public boolean retainAll(<?> c)
-
removeAll
public boolean removeAll(<?> c)
-
trySetComparator
public boolean trySetComparator(<? super V> comparator)
Description copied from interface:RSortedSet
Sets new comparator only if current set is empty- Specified by:
trySetComparator
in interfaceRSortedSet<V>
- Parameters:
comparator
- for values- Returns:
true
if new comparator settedfalse
otherwise
-
binarySearch
public RedissonSortedSet.BinarySearchResult<V> binarySearch(V value, Codec codec)
-
toString
public toString()
- Overrides:
in class
-
-