V
- type of valuepublic interface RSet<V> extends Set<V>, RExpirable, RSetAsync<V>, RSortable<Set<V>>
Set
Modifier and Type | Method and Description |
---|---|
int |
diff(String... names)
Diff sets specified by name and write to current set.
|
RCountDownLatch |
getCountDownLatch(V value)
Returns
RCountDownLatch instance associated with value |
RLock |
getFairLock(V value)
Returns
RLock instance associated with value |
RLock |
getLock(V value)
Returns lock instance associated with
value |
RPermitExpirableSemaphore |
getPermitExpirableSemaphore(V value)
Returns
RPermitExpirableSemaphore instance associated with value |
RReadWriteLock |
getReadWriteLock(V value)
Returns
RReadWriteLock instance associated with value |
RSemaphore |
getSemaphore(V value)
Returns
RSemaphore instance associated with value |
int |
intersection(String... names)
Intersection sets specified by name and write to current set.
|
Iterator<V> |
iterator(int count)
Returns elements iterator fetches elements in a batch.
|
Iterator<V> |
iterator(String pattern)
Returns elements iterator.
|
Iterator<V> |
iterator(String pattern,
int count)
Returns elements iterator fetches elements in a batch.
|
<KOut,VOut> |
mapReduce()
Returns
RMapReduce object associated with this object |
boolean |
move(String destination,
V member)
Move a member from this set to the given destination set in.
|
V |
random()
Returns random element
|
Set<V> |
random(int count)
Returns random elements from set limited by
count |
Set<V> |
readAll()
Read all elements at once
|
Set<V> |
readDiff(String... names)
Diff sets specified by name with current set.
|
Set<V> |
readIntersection(String... names)
Intersection sets specified by name with current set
without current set state change.
|
Set<V> |
readUnion(String... names)
Union sets specified by name with current set
without current set state change.
|
V |
removeRandom()
Removes and returns random element
|
Set<V> |
removeRandom(int amount)
Removes and returns random elements limited by
amount |
Stream<V> |
stream(int count)
Returns stream of elements fetches elements in a batch.
|
Stream<V> |
stream(String pattern)
Returns stream of elements.
|
Stream<V> |
stream(String pattern,
int count)
Returns stream of elements fetches elements in a batch.
|
int |
union(String... names)
Union sets specified by name and write to current set.
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
diffAsync, intersectionAsync, moveAsync, randomAsync, randomAsync, readAllAsync, readDiffAsync, readIntersectionAsync, readUnionAsync, removeRandomAsync, removeRandomAsync, unionAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
readSort, readSort, readSort, readSort, readSort, readSort, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo
readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync
RCountDownLatch getCountDownLatch(V value)
RCountDownLatch
instance associated with value
value
- - set valueRPermitExpirableSemaphore getPermitExpirableSemaphore(V value)
RPermitExpirableSemaphore
instance associated with value
value
- - set valueRSemaphore getSemaphore(V value)
RSemaphore
instance associated with value
value
- - set valueRLock getFairLock(V value)
RLock
instance associated with value
value
- - set valueRReadWriteLock getReadWriteLock(V value)
RReadWriteLock
instance associated with value
value
- - set valueRLock getLock(V value)
value
value
- - set valueStream<V> stream(int count)
count
param.count
- - size of elements batchStream<V> stream(String pattern, int count)
count
param.
If pattern is not null then only elements match this pattern are loaded.pattern
- - search patterncount
- - size of elements batchStream<V> stream(String pattern)
pattern
- - search patternIterator<V> iterator(int count)
count
param.count
- - size of elements batchIterator<V> iterator(String pattern, int count)
count
param.
If pattern is not null then only elements match this pattern are loaded.pattern
- - search patterncount
- - size of elements batchIterator<V> iterator(String pattern)
pattern
is not null then only elements match this pattern are loaded.pattern
- - search pattern<KOut,VOut> RCollectionMapReduce<V,KOut,VOut> mapReduce()
RMapReduce
object associated with this objectKOut
- output keyVOut
- output valueSet<V> removeRandom(int amount)
amount
amount
- of random elementsV removeRandom()
V random()
Set<V> random(int count)
count
count
- - values amount to returnboolean move(String destination, V member)
destination
- the destination setmember
- the member to moveint union(String... names)
names
- - name of setsSet<V> readUnion(String... names)
names
- - name of setsint diff(String... names)
names
- - name of setsSet<V> readDiff(String... names)
names
- - name of setsint intersection(String... names)
names
- - name of setsCopyright © 2014–2020 Redisson. All rights reserved.