groovyx.gpars.extra166y
Class AbstractParallelAnyArray.LFOMPap<U>

java.lang.Object
  extended by groovyx.gpars.extra166y.AbstractParallelAnyArray
      extended by groovyx.gpars.extra166y.AbstractParallelAnyArray.LPap
          extended by groovyx.gpars.extra166y.ParallelLongArrayWithMapping<U>
              extended by groovyx.gpars.extra166y.AbstractParallelAnyArray.LOMPap<U>
                  extended by groovyx.gpars.extra166y.AbstractParallelAnyArray.LFOMPap<U>
Enclosing class:
AbstractParallelAnyArray

static final class AbstractParallelAnyArray.LFOMPap<U>
extends AbstractParallelAnyArray.LOMPap<U>


Nested Class Summary
 
Nested classes/interfaces inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray
AbstractParallelAnyArray.AndPredicate<T>, AbstractParallelAnyArray.DDCPap, AbstractParallelAnyArray.DDMPap, AbstractParallelAnyArray.DFDCPap, AbstractParallelAnyArray.DFDMPap, AbstractParallelAnyArray.DFLCPap, AbstractParallelAnyArray.DFLMPap, AbstractParallelAnyArray.DFOCPap<U>, AbstractParallelAnyArray.DFOMPap<U>, AbstractParallelAnyArray.DFPap, AbstractParallelAnyArray.DLCPap, AbstractParallelAnyArray.DLMPap, AbstractParallelAnyArray.DOCPap<U>, AbstractParallelAnyArray.DOMPap<U>, AbstractParallelAnyArray.DPap, AbstractParallelAnyArray.DRDCPap, AbstractParallelAnyArray.DRDMPap, AbstractParallelAnyArray.DRLCPap, AbstractParallelAnyArray.DRLMPap, AbstractParallelAnyArray.DROCPap<U>, AbstractParallelAnyArray.DROMPap<U>, AbstractParallelAnyArray.DRPap, AbstractParallelAnyArray.DUDCPap, AbstractParallelAnyArray.DUDMPap, AbstractParallelAnyArray.DULCPap, AbstractParallelAnyArray.DULMPap, AbstractParallelAnyArray.DUOCPap<U>, AbstractParallelAnyArray.DUOMPap<U>, AbstractParallelAnyArray.DUPap, AbstractParallelAnyArray.FilteredAsDoubleIterator, AbstractParallelAnyArray.FilteredAsLongIterator, AbstractParallelAnyArray.FilteredIterator<U>, AbstractParallelAnyArray.LDCPap, AbstractParallelAnyArray.LDMPap, AbstractParallelAnyArray.LFDCPap, AbstractParallelAnyArray.LFDMPap, AbstractParallelAnyArray.LFLCPap, AbstractParallelAnyArray.LFLMPap, AbstractParallelAnyArray.LFOCPap<U>, AbstractParallelAnyArray.LFOMPap<U>, AbstractParallelAnyArray.LFPap, AbstractParallelAnyArray.LLCPap, AbstractParallelAnyArray.LLMPap, AbstractParallelAnyArray.LOCPap<U>, AbstractParallelAnyArray.LOMPap<U>, AbstractParallelAnyArray.LPap, AbstractParallelAnyArray.LRDCPap, AbstractParallelAnyArray.LRDMPap, AbstractParallelAnyArray.LRLCPap, AbstractParallelAnyArray.LRLMPap, AbstractParallelAnyArray.LROCPap<U>, AbstractParallelAnyArray.LROMPap<U>, AbstractParallelAnyArray.LRPap, AbstractParallelAnyArray.LUDCPap, AbstractParallelAnyArray.LUDMPap, AbstractParallelAnyArray.LULCPap, AbstractParallelAnyArray.LULMPap, AbstractParallelAnyArray.LUOCPap<U>, AbstractParallelAnyArray.LUOMPap<U>, AbstractParallelAnyArray.LUPap, AbstractParallelAnyArray.ODCPap<T>, AbstractParallelAnyArray.ODMPap<T>, AbstractParallelAnyArray.OFDCPap<T>, AbstractParallelAnyArray.OFDMPap<T>, AbstractParallelAnyArray.OFLCPap<T>, AbstractParallelAnyArray.OFLMPap<T>, AbstractParallelAnyArray.OFOCPap<T,U>, AbstractParallelAnyArray.OFOMPap<T,U>, AbstractParallelAnyArray.OFPap<T>, AbstractParallelAnyArray.OLCPap<T>, AbstractParallelAnyArray.OLMPap<T>, AbstractParallelAnyArray.OOCPap<T,U>, AbstractParallelAnyArray.OOMPap<T,U>, AbstractParallelAnyArray.OPap<T>, AbstractParallelAnyArray.ORDCPap<T>, AbstractParallelAnyArray.ORDMPap<T>, AbstractParallelAnyArray.ORLCPap<T>, AbstractParallelAnyArray.ORLMPap<T>, AbstractParallelAnyArray.OROCPap<T,U>, AbstractParallelAnyArray.OROMPap<T,U>, AbstractParallelAnyArray.ORPap<T>, AbstractParallelAnyArray.OUDCPap<T>, AbstractParallelAnyArray.OUDMPap<T>, AbstractParallelAnyArray.OULCPap<T>, AbstractParallelAnyArray.OULMPap<T>, AbstractParallelAnyArray.OUOCPap<T,U>, AbstractParallelAnyArray.OUOMPap<T,U>, AbstractParallelAnyArray.OUPap<T>, AbstractParallelAnyArray.Sequentially<U>, AbstractParallelAnyArray.SequentiallyAsDouble, AbstractParallelAnyArray.SequentiallyAsLong, AbstractParallelAnyArray.UnfilteredAsDoubleIterator, AbstractParallelAnyArray.UnfilteredAsLongIterator, AbstractParallelAnyArray.UnfilteredIterator<U>
 
Field Summary
(package private)  Ops.LongPredicate selector
           
 
Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.LOMPap
op
 
Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.LPap
array
 
Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray
ex, fence, origin, threshold
 
Constructor Summary
AbstractParallelAnyArray.LFOMPap(jsr166y.ForkJoinPool ex, int origin, int fence, long[] array, Ops.LongPredicate selector, Ops.LongToObject<? extends U> op)
           
 
Method Summary
(package private)  boolean hasFilter()
           
(package private)  boolean isSelected(int i)
           
(package private)  void leafApply(int lo, int hi, Ops.Procedure procedure)
           
(package private)  java.lang.Object leafReduce(int lo, int hi, Ops.Reducer reducer, java.lang.Object base)
           
 ParallelLongArrayWithDoubleMapping withIndexedMapping(Ops.IntAndObjectToDouble<? super U> 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(Ops.IntAndObjectToLong<? super U> 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.
<V> ParallelLongArrayWithMapping<V>
withIndexedMapping(Ops.IntAndObjectToObject<? super U,? 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.
 ParallelLongArrayWithDoubleMapping withMapping(Ops.ObjectToDouble<? super 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
 ParallelLongArrayWithLongMapping withMapping(Ops.ObjectToLong<? super 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
<V> ParallelLongArrayWithMapping<V>
withMapping(Ops.Op<? super U,? extends V> 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.AbstractParallelAnyArray.LOMPap
dget, hasMap, leafTransfer, leafTransferByIndex, lget, oget
 
Methods inherited from class groovyx.gpars.extra166y.ParallelLongArrayWithMapping
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.LPap
leafMoveByIndex, leafMoveSelected, lgetArray
 
Methods inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray
allDoubles, allLongs, allObjects, anyIndex, boundsCheck, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, computeThreshold, dgetArray, getThreshold, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedSelector, indexedSelector, indexedSelector, isEmpty, leafApply, leafApply, leafBinaryIndexMap, leafBinaryIndexMap, leafBinaryIndexMap, leafCombineInPlace, leafCombineInPlace, leafCombineInPlace, leafCombineInPlace, leafCombineInPlace, leafCombineInPlace, leafFill, leafFill, leafFill, leafGenerate, leafGenerate, leafGenerate, leafIndexMap, leafIndexMap, leafIndexMap, leafIndexSelected, leafReduce, leafReduce, leafTransfer, leafTransfer, leafTransferByIndex, leafTransferByIndex, leafTransform, leafTransform, leafTransform, ogetArray, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selector

final Ops.LongPredicate selector
Constructor Detail

AbstractParallelAnyArray.LFOMPap

AbstractParallelAnyArray.LFOMPap(jsr166y.ForkJoinPool ex,
                                 int origin,
                                 int fence,
                                 long[] array,
                                 Ops.LongPredicate selector,
                                 Ops.LongToObject<? extends U> op)
Method Detail

hasFilter

boolean hasFilter()
Overrides:
hasFilter in class AbstractParallelAnyArray

isSelected

boolean isSelected(int i)
Overrides:
isSelected in class AbstractParallelAnyArray

withMapping

public <V> ParallelLongArrayWithMapping<V> withMapping(Ops.Op<? super U,? extends V> op)
Description copied from class: ParallelLongArrayWithMapping
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

Specified by:
withMapping in class ParallelLongArrayWithMapping<U>
Parameters:
op - the op
Returns:
operation prefix

withMapping

public ParallelLongArrayWithLongMapping withMapping(Ops.ObjectToLong<? super U> op)
Description copied from class: ParallelLongArrayWithMapping
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

Specified by:
withMapping in class ParallelLongArrayWithMapping<U>
Parameters:
op - the op
Returns:
operation prefix

withMapping

public ParallelLongArrayWithDoubleMapping withMapping(Ops.ObjectToDouble<? super U> op)
Description copied from class: ParallelLongArrayWithMapping
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

Specified by:
withMapping in class ParallelLongArrayWithMapping<U>
Parameters:
op - the op
Returns:
operation prefix

withIndexedMapping

public <V> ParallelLongArrayWithMapping<V> withIndexedMapping(Ops.IntAndObjectToObject<? super U,? extends V> mapper)
Description copied from class: ParallelLongArrayWithMapping
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.

Specified by:
withIndexedMapping in class ParallelLongArrayWithMapping<U>
Parameters:
mapper - the mapper
Returns:
operation prefix

withIndexedMapping

public ParallelLongArrayWithDoubleMapping withIndexedMapping(Ops.IntAndObjectToDouble<? super U> mapper)
Description copied from class: ParallelLongArrayWithMapping
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.

Specified by:
withIndexedMapping in class ParallelLongArrayWithMapping<U>
Parameters:
mapper - the mapper
Returns:
operation prefix

withIndexedMapping

public ParallelLongArrayWithLongMapping withIndexedMapping(Ops.IntAndObjectToLong<? super U> mapper)
Description copied from class: ParallelLongArrayWithMapping
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.

Specified by:
withIndexedMapping in class ParallelLongArrayWithMapping<U>
Parameters:
mapper - the mapper
Returns:
operation prefix

leafApply

void leafApply(int lo,
               int hi,
               Ops.Procedure procedure)
Overrides:
leafApply in class AbstractParallelAnyArray

leafReduce

java.lang.Object leafReduce(int lo,
                            int hi,
                            Ops.Reducer reducer,
                            java.lang.Object base)
Overrides:
leafReduce in class AbstractParallelAnyArray

Copyright © 2008–2012 Václav Pech. All Rights Reserved.