public class Data extends Object
A.stream().flatMap(combineWith(B)).flatMap(combineWith(C)).iterator();
| Constructor and Description |
|---|
Data() |
| Modifier and Type | Method and Description |
|---|---|
static <A,B,C> Function<A,Stream<C>> |
combineWith(Collection<B> collection,
BiFunction<A,B,C> byFunction)
Totally general algorithm to combine potentially typesafe heterogeneous input data collections into a structured
representation of combination of their elements.
|
static Function<Object[],Stream<Object[]>> |
combineWith(Collection<Object[]> collection)
Simple function to combine original stream of arrays with elements in provided collection of arrays so, that
arrays are concatenated into new one.
|
static Stream<Object[]> |
expand(Stream<Object[]> definition)
Expansion algorithm allowing definition of data as sparse array representing a tree.
|
public static <A,B,C> Function<A,Stream<C>> combineWith(Collection<B> collection, BiFunction<A,B,C> byFunction)
A - Type of elements in original (input) stream.B - Type of elements in the collection to combine with.C - Type of the representation of a combination.collection - Collection to combine evbyFunction - Function to create representation of the combination o element from original stream, and element
from the collection.public static Function<Object[],Stream<Object[]>> combineWith(Collection<Object[]> collection)
collection - Collection of arrays.public static Stream<Object[]> expand(Stream<Object[]> definition)
definition - Stream of data rows represented as sparse array.Copyright © 2021. All rights reserved.