Class ParallelMapIterate
java.lang.Object
org.eclipse.collections.impl.parallel.ParallelMapIterate
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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> void forEachKeyValue
(Map<K, V> map, Procedure2<? super K, ? super V> procedure2) A parallel form of forEachKeyValue.static <K,
V> void forEachKeyValue
(Map<K, V> map, Procedure2<? super K, ? super V> procedure, int minForkSize, int taskCount) A parallel form of forEachKeyValue.static <K,
V> void forEachKeyValue
(Map<K, V> map, Procedure2<? super K, ? super V> procedure, int minForkSize, int taskCount, Executor executor) A parallel form of forEachKeyValue.static <K,
V> void forEachKeyValue
(Map<K, V> map, Procedure2<? super K, ? super V> procedure, Executor executor) A parallel form of forEachKeyValue.
-
Method Details
-
forEachKeyValue
A parallel form of forEachKeyValue. -
forEachKeyValue
public static <K,V> void forEachKeyValue(Map<K, V> map, Procedure2<? super K, ? super V> procedure, Executor executor) A parallel form of forEachKeyValue. -
forEachKeyValue
public static <K,V> void forEachKeyValue(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(Map<K, V> map, Procedure2<? super K, ? super V> procedure, int minForkSize, int taskCount, Executor executor) A parallel form of forEachKeyValue.
-