|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectgpars.AbstractPAWrapper
class AbstractPAWrapper
Wraps a ParallelArray instance in map/reduce operation chains.
Property Summary | |
---|---|
def |
pa
The wrapper ParallelArray instance |
Constructor Summary | |
AbstractPAWrapper(def pa)
Creates an instance wrapping the supplied instance of ParallelArray |
Method Summary | |
---|---|
AbstractPAWrapper
|
filter(groovy.lang.Closure cl)
Filters concurrently elements in the collection based on the outcome of the supplied function on each of the elements. |
Object
|
getCollection()
Reconstructs a collection from the wrapped ParallelArray instance |
AbstractPAWrapper
|
map(groovy.lang.Closure cl)
Applies concurrently the supplied function to all elements in the collection, returning a collection containing the transformed values. |
T
|
max()
Finds in parallel the maximum of all values in the collection. |
T
|
max(groovy.lang.Closure cl)
Finds in parallel the maximum of all values in the collection. |
T
|
min()
Finds in parallel the minimum of all values in the collection. |
T
|
min(groovy.lang.Closure cl)
Finds in parallel the minimum of all values in the collection. |
T
|
reduce(groovy.lang.Closure cl)
Performs a parallel reduce operation. |
T
|
reduce(def seed, groovy.lang.Closure cl)
Performs a parallel reduce operation. |
int
|
size()
Size of the collection |
T
|
sum()
Summarizes all elements of the collection in parallel using the "plus()" operator of the elements |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Property Detail |
---|
final def pa
Constructor Detail |
---|
public AbstractPAWrapper(def pa)
Method Detail |
---|
public AbstractPAWrapper filter(groovy.lang.Closure cl)
public final Object getCollection()
public final AbstractPAWrapper map(groovy.lang.Closure cl)
public final T max()
public final T max(groovy.lang.Closure cl)
public final T min()
public final T min(groovy.lang.Closure cl)
public final T reduce(groovy.lang.Closure cl)
public final T reduce(def seed, groovy.lang.Closure cl)
public final int size()
public final T sum()
Groovy Documentation