Top Description Inners Constructors Methods
org.eclipse.collections.impl.parallel

public final Class ParallelMapIterate

extends Object
Class Inheritance
Imports
java.util.Map, java.util.concurrent.Executor, org.eclipse.collections.api.block.procedure.Procedure, .Procedure2, org.eclipse.collections.api.tuple.Pair, org.eclipse.collections.impl.utility.MapIterate

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 and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <K, V> void
forEachKeyValue(Map<K, V> map, Procedure2<? super K, ? super V> procedure2)

A parallel form of forEachKeyValue.

public static <K, V> void
forEachKeyValue(Map<K, V> map, Procedure2<? super K, ? super V> procedure, Executor executor)

A parallel form of 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.

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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ParallelMapIterateback to summary
private ParallelMapIterate()

Method Detail

forEachKeyValueback to summary
public static <K, V> void forEachKeyValue(Map<K, V> map, Procedure2<? super K, ? super V> procedure2)

A parallel form of forEachKeyValue.

See Also
MapIterate#forEachKeyValue(Map, Procedure2), ParallelIterate
forEachKeyValueback to summary
public static <K, V> void forEachKeyValue(Map<K, V> map, Procedure2<? super K, ? super V> procedure, Executor executor)

A parallel form of forEachKeyValue.

See Also
MapIterate#forEachKeyValue(Map, Procedure2), ParallelIterate
forEachKeyValueback to summary
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.

See Also
MapIterate#forEachKeyValue(Map, Procedure2), ParallelIterate
forEachKeyValueback to summary
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.

See Also
MapIterate#forEachKeyValue(Map, Procedure2), ParallelIterate
org.eclipse.collections.impl.parallel back to summary

private final Class ParallelMapIterate.PairProcedure<T1, T2>

extends Object
implements Procedure<Pair<T1, T2>>
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.parallel.ParallelMapIterate.PairProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.Procedure, java.io.Serializable, java.util.function.Consumer

Field Summary

Modifier and TypeField and Description
private final Procedure2<? super T1, ? super T2>
private static final long

Constructor Summary

AccessConstructor and Description
private
PairProcedure(Procedure2<? super T1, ? super T2> procedure)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

procedureback to summary
private final Procedure2<? super T1, ? super T2> procedure
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

PairProcedureback to summary
private PairProcedure(Procedure2<? super T1, ? super T2> procedure)

Method Detail

valueback to summary
public void value(Pair<T1, T2> pair)

Implements org.eclipse.collections.api.block.procedure.Procedure.value.

Annotations
@Override