|
||||||||||
| 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.LPap
groovyx.gpars.extra166y.ParallelLongArrayWithLongMapping
groovyx.gpars.extra166y.ParallelLongArrayWithFilter
public abstract class ParallelLongArrayWithFilter
A prefix view of ParallelLongArray that causes operations to apply only to elements for which a selector returns true. Instances of this class may be constructed only via prefix methods of ParallelLongArray or its other prefix classes.
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.LPap |
|---|
array |
| Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray |
|---|
ex, fence, origin, threshold |
| Constructor Summary | |
|---|---|
ParallelLongArrayWithFilter(jsr166y.ForkJoinPool ex,
int origin,
int fence,
long[] array)
|
|
| Method Summary | |
|---|---|
ParallelLongArray |
allUniqueElements()
Returns a new ParallelLongArray containing only unique elements (that is, without any duplicates). |
boolean |
hasAllEqualElements(ParallelLongArrayWithLongMapping other)
Returns true if all elements at the same relative positions of this and other array are equal. |
(package private) void |
leafTransfer(int lo,
int hi,
long[] dest,
int offset)
|
(package private) void |
leafTransferByIndex(int[] indices,
int loIdx,
int hiIdx,
long[] dest,
int offset)
|
(package private) long |
lget(int i)
|
ParallelLongArrayWithFilter |
replaceWithGeneratedValue(Ops.LongGenerator generator)
Replaces elements with results of applying the given generator. |
ParallelLongArrayWithFilter |
replaceWithMappedIndex(Ops.IntAndLongToLong op)
Replaces elements with the results of applying the given mapping to each index and current element value. |
ParallelLongArrayWithFilter |
replaceWithMappedIndex(Ops.IntToLong op)
Replaces elements with the results of applying the given op to their indices. |
ParallelLongArrayWithFilter |
replaceWithMapping(Ops.BinaryLongOp combiner,
long[] other)
Replaces elements with results of applying op(thisElement, otherElement). |
ParallelLongArrayWithFilter |
replaceWithMapping(Ops.BinaryLongOp combiner,
ParallelLongArrayWithLongMapping other)
Replaces elements with results of applying op(thisElement, otherElement). |
ParallelLongArrayWithFilter |
replaceWithMapping(Ops.LongOp op)
Replaces elements with the results of applying the given op to their current values. |
ParallelLongArrayWithFilter |
replaceWithValue(long value)
Replaces elements with the given value. |
ParallelLongArrayWithFilter |
withFilter(Ops.BinaryLongPredicate selector,
ParallelLongArrayWithLongMapping other)
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given binary selector returns true. |
abstract ParallelLongArrayWithFilter |
withFilter(Ops.LongPredicate 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. |
abstract ParallelLongArrayWithFilter |
withIndexedFilter(Ops.IntAndLongPredicate 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. |
| Methods inherited from class groovyx.gpars.extra166y.ParallelLongArrayWithLongMapping |
|---|
all, apply, max, max, min, min, reduce, sequentially, sum, summary, summary, withIndexedMapping, withIndexedMapping, withIndexedMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping |
| Methods inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.LPap |
|---|
dget, leafMoveByIndex, leafMoveSelected, lgetArray, oget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ParallelLongArrayWithFilter(jsr166y.ForkJoinPool ex,
int origin,
int fence,
long[] array)
| Method Detail |
|---|
public ParallelLongArrayWithFilter replaceWithMapping(Ops.LongOp op)
op - the op
public ParallelLongArrayWithFilter replaceWithMappedIndex(Ops.IntToLong op)
op - the op
public ParallelLongArrayWithFilter replaceWithMappedIndex(Ops.IntAndLongToLong op)
op - the op
public ParallelLongArrayWithFilter replaceWithGeneratedValue(Ops.LongGenerator generator)
generator - the generator
public ParallelLongArrayWithFilter replaceWithValue(long value)
value - the value
public ParallelLongArrayWithFilter replaceWithMapping(Ops.BinaryLongOp combiner,
ParallelLongArrayWithLongMapping other)
op(thisElement, otherElement).
other - the other arraycombiner - the combiner
public ParallelLongArrayWithFilter replaceWithMapping(Ops.BinaryLongOp combiner,
long[] other)
op(thisElement, otherElement).
other - the other arraycombiner - the combiner
public ParallelLongArray allUniqueElements()
public abstract ParallelLongArrayWithFilter withFilter(Ops.LongPredicate selector)
selector - the selector
public ParallelLongArrayWithFilter withFilter(Ops.BinaryLongPredicate selector,
ParallelLongArrayWithLongMapping other)
selector - the selector
public abstract ParallelLongArrayWithFilter withIndexedFilter(Ops.IntAndLongPredicate selector)
selector - the selector
public boolean hasAllEqualElements(ParallelLongArrayWithLongMapping other)
other - the other array
final void leafTransfer(int lo,
int hi,
long[] dest,
int offset)
leafTransfer in class AbstractParallelAnyArray
final void leafTransferByIndex(int[] indices,
int loIdx,
int hiIdx,
long[] dest,
int offset)
leafTransferByIndex in class AbstractParallelAnyArrayfinal long lget(int i)
lget in class AbstractParallelAnyArray
|
Copyright © 2008–2013 Václav Pech. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||