Class ThreadUtils
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.transform.util.ThreadUtils
-
public class ThreadUtils extends Object
Helper class to parallelize over the two sides of aBinaryTransformation
- Author:
- Valentino Pinna
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> SerFunction<Transformation,T>
evalFuture(BinaryOperator<T> combiner, SerFunction<? super Transformation,T>... extractors)
-
-
-
Method Detail
-
evalFuture
@SafeVarargs public static <T> SerFunction<Transformation,T> evalFuture(BinaryOperator<T> combiner, SerFunction<? super Transformation,T>... extractors)
- Type Parameters:
T
- The type returned by the extractor- Parameters:
extractors
- functions that extracts the results of each subexpressioncombiner
- an associative function that reduces the results of the subexpressions- Returns:
- the result of the computation
-
-