|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AbstractParallelAnyArray.LPap groovyx.gpars.extra166y.ParallelLongArrayWithLongMapping
public abstract class ParallelLongArrayWithLongMapping 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 | |
ParallelLongArrayWithLongMapping(ForkJoinPool ex, int origin, int fence, long[] array)
|
Method Summary | |
---|---|
ParallelLongArray
|
all()
Returns a new ParallelLongArray holding elements |
void
|
apply(LongProcedure procedure)
Applies the given procedure to elements |
long
|
max()
Returns the maximum element, or Long.MIN_VALUE if empty |
long
|
max(LongComparator comparator)
Returns the maximum element, or Long.MIN_VALUE if empty |
long
|
min()
Returns the minimum element, or Long.MAX_VALUE if empty |
long
|
min(LongComparator comparator)
Returns the minimum element, or Long.MAX_VALUE if empty |
long
|
reduce(LongReducer reducer, long base)
Returns reduction of 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 |
long
|
sum()
Returns the sum of elements |
SummaryStatistics
|
summary(LongComparator comparator)
Returns summary statistics |
SummaryStatistics
|
summary()
Returns summary statistics, using natural comparator |
ParallelLongArrayWithMapping
|
withIndexedMapping(IntAndLongToObject 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(IntAndLongToDouble 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(IntAndLongToLong 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
|
withMapping(LongOp op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
ParallelLongArrayWithDoubleMapping
|
withMapping(LongToDouble op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
ParallelLongArrayWithMapping
|
withMapping(LongToObject op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
ParallelLongArrayWithMapping
|
withMapping(LongAndObjectToObject 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(LongAndDoubleToObject 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(LongAndLongToObject 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(LongAndObjectToDouble 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(LongAndDoubleToDouble 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(LongAndLongToDouble 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(LongAndObjectToLong 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(LongAndDoubleToLong 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(BinaryLongOp 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 |
---|
ParallelLongArrayWithLongMapping(ForkJoinPool ex, int origin, int fence, long[] array)
Method Detail |
---|
public ParallelLongArray all()
public void apply(LongProcedure procedure)
procedure
- the procedure
public long max()
public long max(LongComparator comparator)
comparator
- the comparator
public long min()
public long min(LongComparator comparator)
comparator
- the comparator
public long reduce(LongReducer reducer, long base)
reducer
- the reducerbase
- the result for an empty array
public java.lang.Iterable sequentially()
public long sum()
public SummaryStatistics summary(LongComparator comparator)
comparator
- the comparator to use for
locating minimum and maximum elements
public SummaryStatistics summary()
public ParallelLongArrayWithMapping withIndexedMapping(IntAndLongToObject mapper)
mapper
- the mapper
public ParallelLongArrayWithDoubleMapping withIndexedMapping(IntAndLongToDouble mapper)
mapper
- the mapper
public ParallelLongArrayWithLongMapping withIndexedMapping(IntAndLongToLong mapper)
mapper
- the mapper
public ParallelLongArrayWithLongMapping withMapping(LongOp op)
op
- the op
public ParallelLongArrayWithDoubleMapping withMapping(LongToDouble op)
op
- the op
public ParallelLongArrayWithMapping withMapping(LongToObject op)
op
- the op
public ParallelLongArrayWithMapping withMapping(LongAndObjectToObject combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithMapping withMapping(LongAndDoubleToObject combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithMapping withMapping(LongAndLongToObject combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithDoubleMapping withMapping(LongAndObjectToDouble combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithDoubleMapping withMapping(LongAndDoubleToDouble combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithDoubleMapping withMapping(LongAndLongToDouble combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithLongMapping withMapping(LongAndObjectToLong combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithLongMapping withMapping(LongAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelLongArrayWithLongMapping withMapping(BinaryLongOp combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
Copyright © 2008–2012 Václav Pech. All Rights Reserved.