A prefix view of ParallelArray 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 ParallelArray or its other prefix classes.
Constructor and description |
---|
ParallelArrayWithLongMapping
(java.util.concurrent.ForkJoinPool ex, int origin, int fence, T[] array) |
Type | Name and description |
---|---|
ParallelLongArray |
all() Returns a new ParallelLongArray holding mappings. |
void |
apply(LongProcedure procedure) Applies the given procedure. |
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 mapped elements. |
java.lang.Iterable<java.lang.Long> |
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. |
ParallelArrayWithMapping<T, V> |
withIndexedMapping(IntAndLongToObject<? extends V> 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. |
ParallelArrayWithDoubleMapping<T> |
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. |
ParallelArrayWithLongMapping<T> |
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. |
ParallelArrayWithDoubleMapping<T> |
withMapping(LongToDouble op) Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
ParallelArrayWithLongMapping<T> |
withMapping(LongOp op) Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
ParallelArrayWithMapping<T, U> |
withMapping(LongToObject<? extends U> op) Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
ParallelArrayWithMapping<T, W> |
withMapping(LongAndObjectToObject<? super V, ? extends W> combiner, ParallelArrayWithMapping<X, V> other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelArrayWithMapping<T, V> |
withMapping(LongAndDoubleToObject<? extends V> combiner, ParallelDoubleArrayWithDoubleMapping other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelArrayWithMapping<T, V> |
withMapping(LongAndLongToObject<? extends V> combiner, ParallelLongArrayWithLongMapping other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelArrayWithDoubleMapping<T> |
withMapping(LongAndObjectToDouble<? super V> combiner, ParallelArrayWithMapping<W, V> other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelArrayWithDoubleMapping<T> |
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. |
ParallelArrayWithDoubleMapping<T> |
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. |
ParallelArrayWithLongMapping<T> |
withMapping(LongAndObjectToLong<? super V> combiner, ParallelArrayWithMapping<W, V> other) Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelArrayWithLongMapping<T> |
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. |
ParallelArrayWithLongMapping<T> |
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. |
Returns a new ParallelLongArray holding mappings.
Applies the given procedure.
procedure
- the procedureReturns the maximum element, or Long.MIN_VALUE if empty.
Returns the maximum element, or Long.MIN_VALUE if empty.
comparator
- the comparatorReturns the minimum element, or Long.MAX_VALUE if empty.
Returns the minimum element, or Long.MAX_VALUE if empty.
comparator
- the comparatorReturns reduction of mapped elements.
reducer
- the reducerbase
- the result for an empty arrayReturns an Iterable view to sequentially step through mapped elements also obeying bound and filter constraints, without performing computations to evaluate them in parallel.
Returns the sum of elements.
Returns summary statistics.
comparator
- the comparator to use for
locating minimum and maximum elementsReturns summary statistics, using natural comparator.
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.
mapper
- the mapperReturns 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.
mapper
- the mapperReturns 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.
mapper
- the mapperReturns an operation prefix that causes a method to operate on mapped elements of the array using the given op.
op
- the opReturns an operation prefix that causes a method to operate on mapped elements of the array using the given op.
op
- the opReturns an operation prefix that causes a method to operate on mapped elements of the array using the given op.
op
- the opReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayCopyright © 2008–2014 Václav Pech. All Rights Reserved.