groovyx.gpars.extra166y
Class PAS.FJSelectAll

java.lang.Object
  extended by jsr166y.ForkJoinTask<java.lang.Void>
      extended by jsr166y.RecursiveAction
          extended by groovyx.gpars.extra166y.PAS.FJSelectAll
All Implemented Interfaces:
java.io.Serializable, java.util.concurrent.Future<java.lang.Void>
Enclosing class:
PAS

static final class PAS.FJSelectAll
extends jsr166y.RecursiveAction

SelectAll proceeds in two passes. In the first phase, indices of matching elements are recorded in indices array. In second pass, once the size of results is known and result array is constructed in driver, the matching elements are placed into corresponding result positions.


Field Summary
(package private)  int count
           
(package private)  PAS.FJSelectAllDriver driver
           
(package private)  int hi
           
(package private)  boolean isInternal
           
(package private)  PAS.FJSelectAll left
           
(package private)  int lo
           
(package private)  int offset
           
(package private)  PAS.FJSelectAll right
           
(package private)  int threshold
           
 
Constructor Summary
PAS.FJSelectAll(PAS.FJSelectAllDriver driver, int lo, int hi)
           
 
Method Summary
 void compute()
           
(package private)  void internalPhase0()
           
(package private)  void internalPhase1()
           
 
Methods inherited from class jsr166y.RecursiveAction
exec, getRawResult, setRawResult
 
Methods inherited from class jsr166y.ForkJoinTask
adapt, adapt, adapt, cancel, complete, completeExceptionally, fork, get, get, getException, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyInvoke, quietlyJoin, reinitialize, tryUnfork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driver

final PAS.FJSelectAllDriver driver

left

PAS.FJSelectAll left

right

PAS.FJSelectAll right

lo

final int lo

hi

final int hi

count

int count

offset

int offset

isInternal

boolean isInternal

threshold

final int threshold
Constructor Detail

PAS.FJSelectAll

PAS.FJSelectAll(PAS.FJSelectAllDriver driver,
                int lo,
                int hi)
Method Detail

compute

public void compute()
Specified by:
compute in class jsr166y.RecursiveAction

internalPhase0

void internalPhase0()

internalPhase1

void internalPhase1()

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