com.intel.hadoop.graphbuilder.util
Class Parallel

java.lang.Object
  extended by com.intel.hadoop.graphbuilder.util.Parallel

public class Parallel
extends java.lang.Object

Parallel for equivalent implementation.

Author:
Haijie Gu

Nested Class Summary
static interface Parallel.Operation<T>
          Funtion interface for the parfor operation.
 
Constructor Summary
Parallel()
           
 
Method Summary
 void close()
          Reap the threads.
<T> void
For(java.util.List<T> pElements, Parallel.Operation<T> pOperation)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parallel

public Parallel()
Method Detail

For

public <T> void For(java.util.List<T> pElements,
                    Parallel.Operation<T> pOperation)

close

public void close()
Reap the threads.