Package | Description |
---|---|
groovyx.gpars.extra166y |
Collections supporting parallel operations.
|
groovyx.gpars.pa |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CommonOps.RawMaxReducer |
(package private) static class |
CommonOps.RawMinReducer |
Modifier and Type | Field and Description |
---|---|
(package private) Ops.Reducer |
PAS.FJOReduce.reducer |
(package private) Ops.Reducer |
PAS.FJOScanOp.reducer |
Modifier and Type | Method and Description |
---|---|
static Ops.Reducer<java.lang.Object> |
CommonOps.castedMaxReducer()
Returns a reducer returning maximum of two values, or
null if both arguments are null, and that casts
its arguments as Comparable on each comparison, throwing
ClassCastException on failure. |
static Ops.Reducer<java.lang.Object> |
CommonOps.castedMinReducer()
Returns a reducer returning minimum of two values, or
null if both arguments are null, and that casts
its arguments as Comparable on each comparison, throwing
ClassCastException on failure. |
static <T> Ops.Reducer<T> |
CommonOps.maxReducer(java.util.Comparator<? super T> comparator)
Returns a reducer returning the maximum of two elements, using
the given comparator, and treating null as less than any
non-null element.
|
static <T> Ops.Reducer<T> |
CommonOps.minReducer(java.util.Comparator<? super T> comparator)
Returns a reducer returning the minimum of two elements, using
the given comparator, and treating null as greater than any
non-null element.
|
static <T extends java.lang.Comparable<? super T>> |
CommonOps.naturalMaxReducer(java.lang.Class<T> type)
Returns a reducer returning the maximum of two Comparable
elements, treating null as less than any non-null element.
|
static <T extends java.lang.Comparable<? super T>> |
CommonOps.naturalMinReducer(java.lang.Class<T> type)
Returns a reducer returning the minimum of two Comparable
elements, treating null as greater than any non-null element.
|
Modifier and Type | Method and Description |
---|---|
ParallelArrayWithBounds<T> |
AbstractParallelAnyArray.OUPap.cumulate(Ops.Reducer<T> reducer,
T base) |
ParallelArray<T> |
ParallelArray.cumulate(Ops.Reducer<T> reducer,
T base)
Replaces each element with the running cumulation of applying
the given reducer.
|
abstract ParallelArrayWithBounds<T> |
ParallelArrayWithBounds.cumulate(Ops.Reducer<T> reducer,
T base)
Replaces each element with the running cumulation of applying
the given reducer.
|
(package private) java.lang.Object |
AbstractParallelAnyArray.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.OUPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.OFPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.ORPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.OUOMPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.DUOMPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.LUOMPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.OFOMPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.DFOMPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.LFOMPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.OROMPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.DROMPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.LROMPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.OUOCPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.DUOCPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.LUOCPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.OFOCPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.DFOCPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.LFOCPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.OROCPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.DROCPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
(package private) java.lang.Object |
AbstractParallelAnyArray.LROCPap.leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base) |
T |
AbstractParallelAnyArray.OUPap.precumulate(Ops.Reducer<T> reducer,
T base) |
T |
ParallelArray.precumulate(Ops.Reducer<T> reducer,
T base)
Replaces each element with the cumulation of applying the given
reducer to all previous values, and returns the total
reduction.
|
abstract T |
ParallelArrayWithBounds.precumulate(Ops.Reducer<T> reducer,
T base)
Replaces each element with the cumulation of applying the given
reducer to all previous values, and returns the total
reduction.
|
T |
ParallelArray.reduce(Ops.Reducer<T> reducer,
T base)
Returns reduction of elements.
|
U |
ParallelArrayWithMapping.reduce(Ops.Reducer<U> reducer,
U base)
Returns reduction of elements.
|
U |
ParallelDoubleArrayWithMapping.reduce(Ops.Reducer<U> reducer,
U base)
Returns reduction of mapped elements.
|
U |
ParallelLongArrayWithMapping.reduce(Ops.Reducer<U> reducer,
U base)
Returns reduction of mapped elements.
|
Constructor and Description |
---|
PAS.FJOCumulateOp(AbstractParallelAnyArray.OPap pap,
Ops.Reducer reducer,
java.lang.Object base) |
PAS.FJOPrecumulateOp(AbstractParallelAnyArray.OPap pap,
Ops.Reducer reducer,
java.lang.Object base) |
PAS.FJOReduce(AbstractParallelAnyArray pap,
int lo,
int hi,
PAS.FJBase next,
Ops.Reducer reducer,
java.lang.Object base) |
PAS.FJOScanOp(AbstractParallelAnyArray.OPap pap,
Ops.Reducer reducer,
java.lang.Object base) |
Modifier and Type | Class and Description |
---|---|
class |
ClosureReducer<T>
A PA reducer built around a closure
|