public class MultiGroup<T> extends Object
| Constructor and Description |
|---|
MultiGroup(Multi<T> upstream) |
| Modifier and Type | Method and Description |
|---|---|
<K> Multi<GroupedMulti<K,T>> |
by(Function<? super T,? extends K> keyMapper) |
<K,V> Multi<GroupedMulti<K,V>> |
by(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
MultiGroupIntoLists<T> |
intoLists()
Splits the upstream
Multi into List of items and emits these lists. |
MultiGroupIntoMultis<T> |
intoMultis()
|
public MultiGroupIntoLists<T> intoLists()
Multi into List of items and emits these lists.
The returned object configures how the split is made.public MultiGroupIntoMultis<T> intoMultis()
Multi into Multi of items and emits these Multi. It transforms the
upstream Multi into a Multi<Multi<T>>, where each emitted multi contains items from the upstream.
The returned object configures how the split is made.
public <K> Multi<GroupedMulti<K,T>> by(Function<? super T,? extends K> keyMapper)
Copyright © 2019–2020 SmallRye. All rights reserved.