Groovy Documentation

gpars
[Groovy] Class TransparentParallel

java.lang.Object
  gpars.TransparentParallel

final 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


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
 

Method Detail

any

final def any(groovy.lang.Closure yield)


collect

final def collect(groovy.lang.Closure yield)


count

final def count(def filter)


each

final def each(groovy.lang.Closure yield)


eachWithIndex

final def eachWithIndex(groovy.lang.Closure yield)


every

final def every(groovy.lang.Closure yield)


find

final def find(groovy.lang.Closure yield)


findAll

final def findAll(groovy.lang.Closure yield)


findAny

final def findAny(groovy.lang.Closure yield)


fold

final def fold(groovy.lang.Closure yield)


fold

final def fold(def seed, groovy.lang.Closure yield)


grep

final def grep(def filter)


groupBy

final def groupBy(groovy.lang.Closure yield)


isTransparent

boolean isTransparent()
Indicates, whether the iterative methods like each() or collect() have been made parallel.


max

final def max(groovy.lang.Closure yield)


max

final def max()


min

final def min(groovy.lang.Closure yield)


min

final def min()


split

final def split(groovy.lang.Closure yield)


sum

final def sum()


 

Groovy Documentation