Package com.lumiomedical.etl.loader
Class Loaders
java.lang.Object
com.lumiomedical.etl.loader.Loaders
public final class Loaders extends Object
- Author:
- Pierre Lecerf ([email protected]) Created on 2020/12/19
-
Method Summary
Modifier and Type Method Description static <I, C extends Collection<I>>
com.lumiomedical.flow.actor.loader.Loader<C>aggregate(com.lumiomedical.flow.actor.loader.Loader<I> loader)
An adapter function for leveraging a given Loader over a collection of its inputs.
-
Method Details
-
aggregate
public static <I, C extends Collection<I>> com.lumiomedical.flow.actor.loader.Loader<C> aggregate(com.lumiomedical.flow.actor.loader.Loader<I> loader)An adapter function for leveraging a given Loader over a collection of its inputs. It essentially produces a Loader that will iterate over the input collection and delegate each item to the provided Loader implementation.- Type Parameters:
I
-C
-- Parameters:
loader
-- Returns:
-