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

public final Class ParallelArrayIterate

extends Object
Class Inheritance
Imports
java.util.concurrent.Executor, org.eclipse.collections.api.block.procedure.Procedure, org.eclipse.collections.impl.utility.ArrayIterate

The ParallelArrayIterate class contains a parallel forEach algorithm that work with Java arrays. The forEach algorithm employs a batching fork and join approach. All Collections that are not array based use ParallelArrayIterate to parallelize, by converting themselves to an array using toArray().

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static <T, BT extends Procedure<? super T>> void
combineSingleProcedure(Combiner<BT> combiner, BT procedure)

public static <T, BT extends Procedure<? super T>> void
forEach(T[] array, ProcedureFactory<BT> procedureFactory, Combiner<BT> combiner)

public static <T, BT extends Procedure<? super T>> void
forEach(T[] array, ProcedureFactory<BT> procedureFactory, Combiner<BT> combiner, int minForkSize, int taskCount)

public static <T, BT extends Procedure<? super T>> void
forEachOn(T[] array, ProcedureFactory<BT> procedureFactory, Combiner<BT> combiner, int minForkSize, int taskCount, Executor executor)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ParallelArrayIterateback to summary
private ParallelArrayIterate()

Method Detail

combineSingleProcedureback to summary
private static <T, BT extends Procedure<? super T>> void combineSingleProcedure(Combiner<BT> combiner, BT procedure)
forEachback to summary
public static <T, BT extends Procedure<? super T>> void forEach(T[] array, ProcedureFactory<BT> procedureFactory, Combiner<BT> combiner)
forEachback to summary
public static <T, BT extends Procedure<? super T>> void forEach(T[] array, ProcedureFactory<BT> procedureFactory, Combiner<BT> combiner, int minForkSize, int taskCount)
forEachOnback to summary
public static <T, BT extends Procedure<? super T>> void forEachOn(T[] array, ProcedureFactory<BT> procedureFactory, Combiner<BT> combiner, int minForkSize, int taskCount, Executor executor)