|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgpars.TransparentParallel
class TransparentParallel
Enhances objects by being mixed-in either within a GParsPool.withPool() block or after enhancement by the ParallelEnhancer through the makeTransparent() method. It overrides the iterative methods, like each, collect and such to delegate to eachParallel, collectParallel and other parallel iterative methods. The collections returned from collect(), findAll() and grep() are again mixed with a TransparentParallel instance, so their iterative methods are transparently parallel as well. Author: Vaclav Pech, Dierk Koenig Date: Oct 30, 2009
Constructor Summary | |
TransparentParallel()
|
Method Summary | |
---|---|
def
|
any(groovy.lang.Closure yield)
|
def
|
collect(groovy.lang.Closure yield)
|
def
|
count(def filter)
|
def
|
each(groovy.lang.Closure yield)
|
def
|
eachWithIndex(groovy.lang.Closure yield)
|
def
|
every(groovy.lang.Closure yield)
|
def
|
find(groovy.lang.Closure yield)
|
def
|
findAll(groovy.lang.Closure yield)
|
def
|
findAny(groovy.lang.Closure yield)
|
def
|
fold(groovy.lang.Closure yield)
|
def
|
fold(def seed, groovy.lang.Closure yield)
|
def
|
grep(def filter)
|
def
|
groupBy(groovy.lang.Closure yield)
|
boolean
|
isTransparent()
Indicates, whether the iterative methods like each() or collect() have been made parallel. |
def
|
max(groovy.lang.Closure yield)
|
def
|
max()
|
def
|
min(groovy.lang.Closure yield)
|
def
|
min()
|
def
|
split(groovy.lang.Closure yield)
|
def
|
sum()
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
TransparentParallel()
Method Detail |
---|
public final def any(groovy.lang.Closure yield)
public final def collect(groovy.lang.Closure yield)
public final def count(def filter)
public final def each(groovy.lang.Closure yield)
public final def eachWithIndex(groovy.lang.Closure yield)
public final def every(groovy.lang.Closure yield)
public final def find(groovy.lang.Closure yield)
public final def findAll(groovy.lang.Closure yield)
public final def findAny(groovy.lang.Closure yield)
public final def fold(groovy.lang.Closure yield)
public final def fold(def seed, groovy.lang.Closure yield)
public final def grep(def filter)
public final def groupBy(groovy.lang.Closure yield)
public boolean isTransparent()
public final def max(groovy.lang.Closure yield)
public final def max()
public final def min(groovy.lang.Closure yield)
public final def min()
public final def split(groovy.lang.Closure yield)
public final def sum()
Groovy Documentation