|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AbstractParallelAnyArray.LPap groovyx.gpars.extra166y.ParallelLongArrayWithMapping
public abstract class ParallelLongArrayWithMapping extends LPap
A prefix view of ParallelLongArray 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 ParallelLongArray or its other prefix classes.
Constructor Summary | |
ParallelLongArrayWithMapping(ForkJoinPool ex, int origin, int fence, long[] array)
|
Method Summary | |
---|---|
ParallelArray
|
all()
Returns a new ParallelArray holding mapped elements |
ParallelArray
|
all(java.lang.Class elementType)
Returns a new ParallelArray with the given element type holding all 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 |
ParallelLongArrayWithMapping
|
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. |
ParallelLongArrayWithDoubleMapping
|
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. |
ParallelLongArrayWithLongMapping
|
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. |
ParallelLongArrayWithMapping
|
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 |
ParallelLongArrayWithLongMapping
|
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 |
ParallelLongArrayWithDoubleMapping
|
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 |
ParallelLongArrayWithMapping
|
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. |
ParallelLongArrayWithMapping
|
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. |
ParallelLongArrayWithMapping
|
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. |
ParallelLongArrayWithDoubleMapping
|
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. |
ParallelLongArrayWithDoubleMapping
|
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. |
ParallelLongArrayWithDoubleMapping
|
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. |
ParallelLongArrayWithLongMapping
|
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. |
ParallelLongArrayWithLongMapping
|
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. |
ParallelLongArrayWithLongMapping
|
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 |
---|
ParallelLongArrayWithMapping(ForkJoinPool ex, int origin, int fence, long[] 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 ParallelLongArrayWithMapping withIndexedMapping(IntAndObjectToObject mapper)
mapper
- the mapper
public ParallelLongArrayWithDoubleMapping withIndexedMapping(IntAndObjectToDouble mapper)
mapper
- the mapper
public ParallelLongArrayWithLongMapping withIndexedMapping(IntAndObjectToLong mapper)
mapper
- the mapper
public ParallelLongArrayWithMapping withMapping(Op op)
op
- the op
public ParallelLongArrayWithLongMapping withMapping(ObjectToLong op)
op
- the op
public ParallelLongArrayWithDoubleMapping withMapping(ObjectToDouble op)
op
- the op
public ParallelLongArrayWithMapping withMapping(BinaryOp combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithMapping withMapping(ObjectAndDoubleToObject combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithMapping withMapping(ObjectAndLongToObject combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithDoubleMapping withMapping(ObjectAndObjectToDouble combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithDoubleMapping withMapping(ObjectAndDoubleToDouble combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithDoubleMapping withMapping(ObjectAndLongToDouble combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithLongMapping withMapping(ObjectAndObjectToLong combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithLongMapping withMapping(ObjectAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithLongMapping withMapping(ObjectAndLongToLong combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
Copyright © 2008–2012 Václav Pech. All Rights Reserved.