|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.extra166y.AbstractParallelAnyArray.DPap groovyx.gpars.extra166y.ParallelDoubleArrayWithMapping
public abstract class ParallelDoubleArrayWithMapping extends DPap
A prefix view of ParallelDoubleArray that causes operations to apply to mappings of elements, not to the elements themselves. Instances of this class may be constructed only via prefix methods of ParallelDoubleArray or its other prefix classes.
Constructor Summary | |
ParallelDoubleArrayWithMapping(ForkJoinPool ex, int origin, int fence, double[] array)
|
Method Summary | |
---|---|
ParallelArray
|
all()
Returns a new ParallelArray holding elements. |
ParallelArray
|
all(java.lang.Class elementType)
Returns a new ParallelArray with the given element type holding elements. |
java.lang.Object
|
any()
Returns mapping of some element matching bound and filter constraints, or null if none. |
void
|
apply(Procedure procedure)
Applies the given procedure to mapped elements. |
java.lang.Object
|
max(java.util.Comparator comparator)
Returns the maximum mapped element, or null if empty. |
java.lang.Object
|
max()
Returns the maximum mapped element, or null if empty, assuming that all elements are Comparables. |
java.lang.Object
|
min(java.util.Comparator comparator)
Returns the minimum mapped element, or null if empty. |
java.lang.Object
|
min()
Returns the minimum mapped element, or null if empty, assuming that all elements are Comparables. |
java.lang.Object
|
reduce(Reducer reducer, java.lang.Object base)
Returns reduction of mapped elements. |
java.lang.Iterable
|
sequentially()
Returns an Iterable view to sequentially step through mapped elements also obeying bound and filter constraints, without performing computations to evaluate them in parallel. |
SummaryStatistics
|
summary(java.util.Comparator comparator)
Returns summary statistics, using the given comparator to locate minimum and maximum elements. |
SummaryStatistics
|
summary()
Returns summary statistics, assuming that all elements are Comparables. |
ParallelDoubleArrayWithMapping
|
withIndexedMapping(IntAndObjectToObject mapper)
Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value. |
ParallelDoubleArrayWithDoubleMapping
|
withIndexedMapping(IntAndObjectToDouble mapper)
Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value. |
ParallelDoubleArrayWithLongMapping
|
withIndexedMapping(IntAndObjectToLong mapper)
Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value. |
ParallelDoubleArrayWithMapping
|
withMapping(Op op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op applied to current op's results. |
ParallelDoubleArrayWithDoubleMapping
|
withMapping(ObjectToDouble op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op applied to current op's results. |
ParallelDoubleArrayWithLongMapping
|
withMapping(ObjectToLong op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op applied to current op's results. |
ParallelDoubleArrayWithMapping
|
withMapping(BinaryOp combiner, ParallelArrayWithMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelDoubleArrayWithMapping
|
withMapping(ObjectAndDoubleToObject combiner, ParallelDoubleArrayWithDoubleMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelDoubleArrayWithMapping
|
withMapping(ObjectAndLongToObject combiner, ParallelLongArrayWithLongMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelDoubleArrayWithDoubleMapping
|
withMapping(ObjectAndObjectToDouble combiner, ParallelArrayWithMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelDoubleArrayWithDoubleMapping
|
withMapping(ObjectAndDoubleToDouble combiner, ParallelDoubleArrayWithDoubleMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelDoubleArrayWithDoubleMapping
|
withMapping(ObjectAndLongToDouble combiner, ParallelLongArrayWithLongMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelDoubleArrayWithLongMapping
|
withMapping(ObjectAndObjectToLong combiner, ParallelArrayWithMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelDoubleArrayWithLongMapping
|
withMapping(ObjectAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelDoubleArrayWithLongMapping
|
withMapping(ObjectAndLongToLong combiner, ParallelLongArrayWithLongMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
Constructor Detail |
---|
ParallelDoubleArrayWithMapping(ForkJoinPool ex, int origin, int fence, double[] array)
Method Detail |
---|
public ParallelArray all()
public ParallelArray all(java.lang.Class elementType)
elementType
- the type of the elements
public java.lang.Object any()
public void apply(Procedure procedure)
procedure
- the procedure
public java.lang.Object max(java.util.Comparator comparator)
comparator
- the comparator
public java.lang.Object max()
public java.lang.Object min(java.util.Comparator comparator)
comparator
- the comparator
public java.lang.Object min()
public java.lang.Object reduce(Reducer reducer, java.lang.Object base)
reducer
- the reducerbase
- the result for an empty array
public java.lang.Iterable sequentially()
public SummaryStatistics summary(java.util.Comparator comparator)
comparator
- the comparator to use for
locating minimum and maximum elements
public SummaryStatistics summary()
public ParallelDoubleArrayWithMapping withIndexedMapping(IntAndObjectToObject mapper)
mapper
- the mapper
public ParallelDoubleArrayWithDoubleMapping withIndexedMapping(IntAndObjectToDouble mapper)
mapper
- the mapper
public ParallelDoubleArrayWithLongMapping withIndexedMapping(IntAndObjectToLong mapper)
mapper
- the mapper
public ParallelDoubleArrayWithMapping withMapping(Op op)
op
- the op
public ParallelDoubleArrayWithDoubleMapping withMapping(ObjectToDouble op)
op
- the op
public ParallelDoubleArrayWithLongMapping withMapping(ObjectToLong op)
op
- the op
public ParallelDoubleArrayWithMapping withMapping(BinaryOp combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithMapping withMapping(ObjectAndDoubleToObject combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithMapping withMapping(ObjectAndLongToObject combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithDoubleMapping withMapping(ObjectAndObjectToDouble combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithDoubleMapping withMapping(ObjectAndDoubleToDouble combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithDoubleMapping withMapping(ObjectAndLongToDouble combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithLongMapping withMapping(ObjectAndObjectToLong combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithLongMapping withMapping(ObjectAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithLongMapping withMapping(ObjectAndLongToLong combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
Copyright © 2008–2013 Václav Pech. All Rights Reserved.