|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgroovyx.gpars.extra166y.AbstractParallelAnyArray
groovyx.gpars.extra166y.AbstractParallelAnyArray.OPap<T>
groovyx.gpars.extra166y.ParallelArrayWithMapping<T,T>
groovyx.gpars.extra166y.ParallelArrayWithFilter<T>
groovyx.gpars.extra166y.ParallelArrayWithBounds<T>
groovyx.gpars.extra166y.AbstractParallelAnyArray.OUPap<T>
static class AbstractParallelAnyArray.OUPap<T>
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.OPap |
|---|
array |
| Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray |
|---|
ex, fence, origin, threshold |
| Constructor Summary | |
|---|---|
AbstractParallelAnyArray.OUPap(jsr166y.ForkJoinPool ex,
int origin,
int fence,
T[] array)
|
|
| Method Summary | ||
|---|---|---|
int |
binarySearch(T target)
Assuming this array is sorted, returns the index of an element equal to given target, or -1 if not present. |
|
int |
binarySearch(T target,
java.util.Comparator<? super T> comparator)
Assuming this array is sorted with respect to the given comparator, returns the index of an element equal to given target, or -1 if not present. |
|
ParallelArrayWithBounds<T> |
cumulate(Ops.Reducer<T> reducer,
T base)
Replaces each element with the running cumulation of applying the given reducer. |
|
int |
indexOf(T target)
Returns the index of some element equal to given target, or -1 if not present |
|
(package private) void |
leafApply(int lo,
int hi,
Ops.Procedure procedure)
|
|
(package private) void |
leafBinaryIndexMap(int l,
int h,
Ops.IntAndObjectToObject op)
|
|
(package private) void |
leafCombineInPlace(int l,
int h,
java.lang.Object[] other,
int otherOffset,
Ops.BinaryOp combiner)
|
|
(package private) void |
leafCombineInPlace(int l,
int h,
ParallelArrayWithMapping other,
int otherOffset,
Ops.BinaryOp combiner)
|
|
(package private) void |
leafFill(int l,
int h,
java.lang.Object value)
|
|
(package private) void |
leafGenerate(int l,
int h,
Ops.Generator generator)
|
|
(package private) void |
leafIndexMap(int l,
int h,
Ops.IntToObject op)
|
|
(package private) java.lang.Object |
leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base)
|
|
(package private) void |
leafTransform(int l,
int h,
Ops.Op op)
|
|
T |
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. |
|
ParallelArrayWithBounds<T> |
sort()
Sorts the elements, assuming all elements are Comparable. |
|
ParallelArrayWithBounds<T> |
sort(java.util.Comparator<? super T> cmp)
Sorts the elements. |
|
ParallelArrayWithBounds<T> |
withBounds(int lo,
int hi)
Returns an operation prefix that causes a method to operate only on the elements of the array between firstIndex (inclusive) and upperBound (exclusive). |
|
ParallelArrayWithFilter<T> |
withFilter(Ops.Predicate<? super T> selector)
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given selector returns true |
|
ParallelArrayWithFilter<T> |
withIndexedFilter(Ops.IntAndObjectPredicate<? super T> selector)
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given indexed selector returns true |
|
ParallelArrayWithDoubleMapping<T> |
withIndexedMapping(Ops.IntAndObjectToDouble<? super T> 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(Ops.IntAndObjectToLong<? super T> 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. |
|
|
withIndexedMapping(Ops.IntAndObjectToObject<? super T,? 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> |
withMapping(Ops.ObjectToDouble<? super T> 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 |
|
ParallelArrayWithLongMapping<T> |
withMapping(Ops.ObjectToLong<? super T> 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 |
|
|
withMapping(Ops.Op<? super T,? extends U> 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 |
|
| Methods inherited from class groovyx.gpars.extra166y.ParallelArrayWithFilter |
|---|
allNonidenticalElements, allUniqueElements, hasAllEqualElements, hasAllIdenticalElements, leafTransfer, leafTransferByIndex, oget, replaceWithGeneratedValue, replaceWithMappedIndex, replaceWithMappedIndex, replaceWithMapping, replaceWithMapping, replaceWithMapping, replaceWithValue, withFilter |
| Methods inherited from class groovyx.gpars.extra166y.ParallelArrayWithMapping |
|---|
all, all, any, apply, max, max, min, min, reduce, sequentially, summary, summary, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping |
| Methods inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.OPap |
|---|
dget, leafMoveByIndex, leafMoveSelected, lget, ogetArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
AbstractParallelAnyArray.OUPap(jsr166y.ForkJoinPool ex,
int origin,
int fence,
T[] array)
| Method Detail |
|---|
public ParallelArrayWithBounds<T> withBounds(int lo,
int hi)
ParallelArrayWithBounds
withBounds in class ParallelArrayWithBounds<T>lo - the lower bound (inclusive)hi - the upper bound (exclusive)
public ParallelArrayWithFilter<T> withFilter(Ops.Predicate<? super T> selector)
ParallelArrayWithFilter
withFilter in class ParallelArrayWithFilter<T>selector - the selector
public ParallelArrayWithFilter<T> withIndexedFilter(Ops.IntAndObjectPredicate<? super T> selector)
ParallelArrayWithFilter
withIndexedFilter in class ParallelArrayWithFilter<T>selector - the selector
public <U> ParallelArrayWithMapping<T,U> withMapping(Ops.Op<? super T,? extends U> op)
ParallelArrayWithMapping
withMapping in class ParallelArrayWithMapping<T,T>op - the op
public ParallelArrayWithDoubleMapping<T> withMapping(Ops.ObjectToDouble<? super T> op)
ParallelArrayWithMapping
withMapping in class ParallelArrayWithMapping<T,T>op - the op
public ParallelArrayWithLongMapping<T> withMapping(Ops.ObjectToLong<? super T> op)
ParallelArrayWithMapping
withMapping in class ParallelArrayWithMapping<T,T>op - the op
public <V> ParallelArrayWithMapping<T,V> withIndexedMapping(Ops.IntAndObjectToObject<? super T,? extends V> mapper)
ParallelArrayWithMapping
withIndexedMapping in class ParallelArrayWithMapping<T,T>mapper - the mapper
public ParallelArrayWithDoubleMapping<T> withIndexedMapping(Ops.IntAndObjectToDouble<? super T> mapper)
ParallelArrayWithMapping
withIndexedMapping in class ParallelArrayWithMapping<T,T>mapper - the mapper
public ParallelArrayWithLongMapping<T> withIndexedMapping(Ops.IntAndObjectToLong<? super T> mapper)
ParallelArrayWithMapping
withIndexedMapping in class ParallelArrayWithMapping<T,T>mapper - the mapper
public int indexOf(T target)
ParallelArrayWithBounds
indexOf in class ParallelArrayWithBounds<T>target - the element to search for
public int binarySearch(T target)
ParallelArrayWithBounds
binarySearch in class ParallelArrayWithBounds<T>target - the element to search for
public int binarySearch(T target,
java.util.Comparator<? super T> comparator)
ParallelArrayWithBounds
binarySearch in class ParallelArrayWithBounds<T>target - the element to search forcomparator - the comparator
public ParallelArrayWithBounds<T> cumulate(Ops.Reducer<T> reducer,
T base)
ParallelArrayWithBounds
cumulate in class ParallelArrayWithBounds<T>reducer - the reducerbase - the result for an empty array
public T precumulate(Ops.Reducer<T> reducer,
T base)
ParallelArrayWithBounds
precumulate in class ParallelArrayWithBounds<T>reducer - the reducerbase - the result for an empty array
public ParallelArrayWithBounds<T> sort(java.util.Comparator<? super T> cmp)
ParallelArrayWithBounds
sort in class ParallelArrayWithBounds<T>cmp - the comparator to use
public ParallelArrayWithBounds<T> sort()
ParallelArrayWithBounds
sort in class ParallelArrayWithBounds<T>
final void leafApply(int lo,
int hi,
Ops.Procedure procedure)
leafApply in class AbstractParallelAnyArray
final java.lang.Object leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base)
leafReduce in class AbstractParallelAnyArray
final void leafTransform(int l,
int h,
Ops.Op op)
leafTransform in class AbstractParallelAnyArray
final void leafIndexMap(int l,
int h,
Ops.IntToObject op)
leafIndexMap in class AbstractParallelAnyArray
final void leafBinaryIndexMap(int l,
int h,
Ops.IntAndObjectToObject op)
leafBinaryIndexMap in class AbstractParallelAnyArray
final void leafGenerate(int l,
int h,
Ops.Generator generator)
leafGenerate in class AbstractParallelAnyArray
final void leafFill(int l,
int h,
java.lang.Object value)
leafFill in class AbstractParallelAnyArray
final void leafCombineInPlace(int l,
int h,
java.lang.Object[] other,
int otherOffset,
Ops.BinaryOp combiner)
leafCombineInPlace in class AbstractParallelAnyArray
final void leafCombineInPlace(int l,
int h,
ParallelArrayWithMapping other,
int otherOffset,
Ops.BinaryOp combiner)
leafCombineInPlace in class AbstractParallelAnyArray
|
Copyright © 2008–2012 Václav Pech. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||