Class ParallelMapIterate
- java.lang.Object
-
- org.eclipse.collections.impl.parallel.ParallelMapIterate
-
public final class ParallelMapIterate extends java.lang.Object
The ParallelMapIterate class contains parallel algorithms that work with Maps.The forEachEntry algorithm employs a batching fork and join approach which does not yet allow for specification of a Factory for the blocks or a Combiner for the results. This means that forEachKeyValue can only support pure forking or forking with a shared thread-safe data structure collecting results.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ParallelMapIterate.PairProcedure<T1,T2>
-
Constructor Summary
Constructors Modifier Constructor Description private
ParallelMapIterate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K,V>
voidforEachKeyValue(java.util.Map<K,V> map, Procedure2<? super K,? super V> procedure2)
A parallel form of forEachKeyValue.static <K,V>
voidforEachKeyValue(java.util.Map<K,V> map, Procedure2<? super K,? super V> procedure, int minForkSize, int taskCount)
A parallel form of forEachKeyValue.static <K,V>
voidforEachKeyValue(java.util.Map<K,V> map, Procedure2<? super K,? super V> procedure, int minForkSize, int taskCount, java.util.concurrent.Executor executor)
A parallel form of forEachKeyValue.static <K,V>
voidforEachKeyValue(java.util.Map<K,V> map, Procedure2<? super K,? super V> procedure, java.util.concurrent.Executor executor)
A parallel form of forEachKeyValue.
-
-
-
Method Detail
-
forEachKeyValue
public static <K,V> void forEachKeyValue(java.util.Map<K,V> map, Procedure2<? super K,? super V> procedure2)
A parallel form of forEachKeyValue.
-
forEachKeyValue
public static <K,V> void forEachKeyValue(java.util.Map<K,V> map, Procedure2<? super K,? super V> procedure, java.util.concurrent.Executor executor)
A parallel form of forEachKeyValue.
-
forEachKeyValue
public static <K,V> void forEachKeyValue(java.util.Map<K,V> map, Procedure2<? super K,? super V> procedure, int minForkSize, int taskCount)
A parallel form of forEachKeyValue.
-
forEachKeyValue
public static <K,V> void forEachKeyValue(java.util.Map<K,V> map, Procedure2<? super K,? super V> procedure, int minForkSize, int taskCount, java.util.concurrent.Executor executor)
A parallel form of forEachKeyValue.
-
-