public class StreamUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StreamUtils.AbstractToPairSpliterator<K,V,M> |
static class |
StreamUtils.Pair<T1,T2> |
| Constructor and Description |
|---|
StreamUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Stream<StreamUtils.Pair<K,V>> |
leftInnerJoinIterable(Stream<K> stream,
Function<? super K,? extends Iterable<V>> mapper)
Creates a stream of pairs that join two streams.
|
static <K,V> Stream<StreamUtils.Pair<K,V>> |
leftInnerJoinStream(Stream<K> stream,
Function<? super K,Stream<V>> mapper)
Creates a stream of pairs that join two streams.
|
public static <K,V> Stream<StreamUtils.Pair<K,V>> leftInnerJoinStream(Stream<K> stream, Function<? super K,Stream<V>> mapper)
stream
and each element v obtained from the stream returned by the mapper for k, generates
a stream of pairs (k, v).
Effectively performs equivalent of a LEFT INNER JOIN SQL operation on streams.
K - V - stream - mapper - public static <K,V> Stream<StreamUtils.Pair<K,V>> leftInnerJoinIterable(Stream<K> stream, Function<? super K,? extends Iterable<V>> mapper)
stream
and each element v obtained from the Iterable returned by the mapper for k, generates
a stream of pairs (k, v).
Effectively performs equivalent of a LEFT INNER JOIN SQL operation on streams.
K - V - stream - mapper - Copyright © 2021 JBoss by Red Hat. All rights reserved.