public class MultiCollector extends Object
| Modifier and Type | Method and Description |
|---|---|
static <R,T> Uni<R> |
collectInto(Multi<T> upstream,
Supplier<R> producer,
BiConsumer<R,? super T> combinator) |
static <T,A,R> Uni<R> |
collector(Multi<T> upstream,
Collector<? super T,A,? extends R> collector,
boolean acceptNullAsInitialValue) |
static <T> Uni<T> |
first(Multi<T> upstream) |
static <T> Uni<T> |
last(Multi<T> upstream) |
static <T> Uni<List<T>> |
list(Multi<T> upstream) |
static <T> Multi<List<T>> |
list(Multi<T> upstream,
Duration timeWindow) |
static <T> Multi<List<T>> |
list(Multi<T> upstream,
int size) |
static <T> Multi<List<T>> |
list(Multi<T> upstream,
int size,
int skip) |
static <K,T> Uni<Map<K,T>> |
map(Multi<T> upstream,
Function<? super T,? extends K> keyMapper) |
static <K,V,T> Uni<Map<K,V>> |
map(Multi<T> upstream,
Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <K,V,R> Uni<Map<K,Collection<V>>> |
multimap(Multi<R> upstream,
Function<? super R,? extends K> keyMapper,
Function<? super R,? extends V> valueMapper) |
public static <T,A,R> Uni<R> collector(Multi<T> upstream, Collector<? super T,A,? extends R> collector, boolean acceptNullAsInitialValue)
public static <R,T> Uni<R> collectInto(Multi<T> upstream, Supplier<R> producer, BiConsumer<R,? super T> combinator)
public static <K,T> Uni<Map<K,T>> map(Multi<T> upstream, Function<? super T,? extends K> keyMapper)
public static <K,V,T> Uni<Map<K,V>> map(Multi<T> upstream, Function<? super T,? extends K> keyMapper, Function<? super T,? extends V> valueMapper)
public static <K,V,R> Uni<Map<K,Collection<V>>> multimap(Multi<R> upstream, Function<? super R,? extends K> keyMapper, Function<? super R,? extends V> valueMapper)
Copyright © 2019–2020 SmallRye. All rights reserved.