V - 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.
|
RLock |
getLock(V value)
Returns lock instance associated with
value |
int |
intersection(String... names)
Intersection sets specified by name and write to current set.
|
Iterator<V> |
iterator(int count)
Returns an iterator over elements in this set.
|
Iterator<V> |
iterator(String pattern)
Returns iterator over elements in this set matches
pattern. |
Iterator<V> |
iterator(String pattern,
int count)
Returns an iterator over elements in this set.
|
<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 from set
|
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 from set
|
Set<V> |
removeRandom(int amount)
Removes and returns random elements from set
|
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, toArrayparallelStream, removeIf, streamclearExpire, expire, expireAt, expireAt, remainTimeToLivecopy, delete, getCodec, getName, isExists, migrate, move, rename, renamenx, touch, unlinkdiffAsync, intersectionAsync, moveAsync, randomAsync, readAllAsync, readDiffAsync, readIntersectionAsync, readUnionAsync, removeRandomAsync, removeRandomAsync, unionAsyncaddAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsyncclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsyncreadSort, readSort, readSort, readSort, readSort, readSort, sortTo, sortTo, sortTo, sortTo, sortTo, sortToreadSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsyncRLock getLock(V value)
valuevalue - - set valueIterator<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.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 - of random valuesV removeRandom()
V random()
boolean 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–2018 The Redisson Project. All rights reserved.