K
- key typeV
- value typepublic interface RSetMultimapRx<K,V> extends RMultimapRx<K,V>
Modifier and Type | Method and Description |
---|---|
RSetRx<V> |
get(K key)
Returns a view Set of the values associated with
key in this
multimap, if any. |
io.reactivex.Single<Set<V>> |
getAll(K key)
Returns all elements at once.
|
io.reactivex.Single<Set<V>> |
removeAll(Object key)
Removes all values associated with the key
key . |
io.reactivex.Single<Set<V>> |
replaceValues(K key,
Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing
values for that key.
|
containsEntry, containsKey, containsValue, fastRemove, keySize, put, putAll, readAllKeySet, remove, size
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
RSetRx<V> get(K key)
key
in this
multimap, if any. Note that when containsKey(key)
is false, this
returns an empty collection, not null
.
Changes to the returned collection will update the underlying multimap, and vice versa.
key
- - map keyio.reactivex.Single<Set<V>> getAll(K key)
key
- - map keyio.reactivex.Single<Set<V>> removeAll(Object key)
key
.
Once this method returns, key
will not be mapped to any values
Use RMultimapReactive.fastRemove(K...)
if values are not needed.
key
- - map keyio.reactivex.Single<Set<V>> replaceValues(K key, Iterable<? extends V> values)
If values
is empty, this is equivalent to
removeAll(Object)
.
key
- - map keyvalues
- - map valuesCopyright © 2014–2020 Redisson. All rights reserved.