|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsr166y.ForkJoinTask<java.lang.Void> jsr166y.RecursiveAction groovyx.gpars.extra166y.PAS.FJOMerger
static final class PAS.FJOMerger
Performs merging for FJSorter. If big enough, splits Left partition in half; finds the greatest point in Right partition less than the beginning of the second half of Left via binary search; and then, in parallel, merges left half of Left with elements of Right up to split point, and merges right half of Left with elements of R past split point. At leaf, it just sequentially merges. This is all messy to code; sadly we need six versions.
Field Summary | |
---|---|
(package private) java.lang.Object[] |
a
|
(package private) java.util.Comparator |
cmp
|
(package private) int |
gran
|
(package private) int |
ln
|
(package private) int |
lo
|
(package private) PAS.FJOMerger |
next
|
(package private) int |
rn
|
(package private) int |
ro
|
(package private) java.lang.Object[] |
w
|
(package private) int |
wo
|
Constructor Summary | |
---|---|
PAS.FJOMerger(java.util.Comparator cmp,
java.lang.Object[] a,
java.lang.Object[] w,
int lo,
int ln,
int ro,
int rn,
int wo,
int gran,
PAS.FJOMerger next)
|
Method Summary | |
---|---|
void |
compute()
|
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 |
---|
final java.util.Comparator cmp
final java.lang.Object[] a
final java.lang.Object[] w
final int lo
final int ln
final int ro
final int rn
final int wo
final int gran
final PAS.FJOMerger next
Constructor Detail |
---|
PAS.FJOMerger(java.util.Comparator cmp, java.lang.Object[] a, java.lang.Object[] w, int lo, int ln, int ro, int rn, int wo, int gran, PAS.FJOMerger next)
Method Detail |
---|
public void compute()
compute
in class jsr166y.RecursiveAction
|
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 |