Package io.smallrye.mutiny.groups
Class MultiGroup<T>
- java.lang.Object
-
- io.smallrye.mutiny.groups.MultiGroup<T>
-
public class MultiGroup<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MultiGroup(Multi<T> upstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K> Multi<GroupedMulti<K,T>>by(java.util.function.Function<? super T,? extends K> keyMapper)<K,V>
Multi<GroupedMulti<K,V>>by(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper)MultiGroupIntoLists<T>intoLists()Splits the upstreamMultiintoListof items and emits these lists.MultiGroupIntoMultis<T>intoMultis()
-
-
-
Method Detail
-
intoLists
@CheckReturnValue public MultiGroupIntoLists<T> intoLists()
Splits the upstreamMultiintoListof items and emits these lists. The returned object configures how the split is made.- Returns:
- the split configuration
-
intoMultis
@CheckReturnValue public MultiGroupIntoMultis<T> intoMultis()
Splits the upstreamMultiintoMultiof items and emits theseMulti. It transforms the upstreamMultiinto aMulti<Multi<T>>, where each emitted multi contains items from the upstream.The returned object configures how the split is made.
- Returns:
- the split configuration
-
by
@CheckReturnValue public <K> Multi<GroupedMulti<K,T>> by(java.util.function.Function<? super T,? extends K> keyMapper)
-
by
@CheckReturnValue public <K,V> Multi<GroupedMulti<K,V>> by(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper)
-
-