static final class PAS.FJOStats extends PAS.FJBase implements ParallelArray.SummaryStatistics
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Comparator |
comparator |
(package private) int |
indexOfMax |
(package private) int |
indexOfMin |
(package private) java.lang.Object |
max |
(package private) java.lang.Object |
min |
(package private) int |
size |
hi, lo, next, pap
Constructor and Description |
---|
PAS.FJOStats(AbstractParallelAnyArray pap,
int lo,
int hi,
PAS.FJBase next,
java.util.Comparator comparator) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
atLeaf(int l,
int h)
Leaf computation
|
(package private) void |
filteredAtLeaf(int l,
int h) |
int |
indexOfMax()
Returns the index of the maximum element, or -1 if empty
|
int |
indexOfMin()
Returns the index of the minimum element, or -1 if empty
|
java.lang.Object |
max()
Returns the maximum element, or null if empty
|
java.lang.Object |
min()
Returns the minimum element, or null if empty
|
(package private) PAS.FJBase |
newSubtask(int l,
int h,
PAS.FJBase r)
Factory method to create new subtask, normally of current type
|
(package private) void |
onReduce(PAS.FJBase right)
Operation performed after joining right subtask -- default noop
|
int |
size()
Returns the number of elements
|
java.lang.String |
toString() |
(package private) void |
updateMax(int i,
java.lang.Object x) |
(package private) void |
updateMin(int i,
java.lang.Object x) |
compute, internalCompute
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
final java.util.Comparator comparator
int size
java.lang.Object min
java.lang.Object max
int indexOfMin
int indexOfMax
PAS.FJOStats(AbstractParallelAnyArray pap, int lo, int hi, PAS.FJBase next, java.util.Comparator comparator)
public int size()
ParallelArray.SummaryStatistics
size
in interface ParallelArray.SummaryStatistics
public java.lang.Object min()
ParallelArray.SummaryStatistics
min
in interface ParallelArray.SummaryStatistics
public java.lang.Object max()
ParallelArray.SummaryStatistics
max
in interface ParallelArray.SummaryStatistics
public int indexOfMin()
ParallelArray.SummaryStatistics
indexOfMin
in interface ParallelArray.SummaryStatistics
public int indexOfMax()
ParallelArray.SummaryStatistics
indexOfMax
in interface ParallelArray.SummaryStatistics
PAS.FJBase newSubtask(int l, int h, PAS.FJBase r)
PAS.FJBase
newSubtask
in class PAS.FJBase
void onReduce(PAS.FJBase right)
PAS.FJBase
onReduce
in class PAS.FJBase
void updateMin(int i, java.lang.Object x)
void updateMax(int i, java.lang.Object x)
void atLeaf(int l, int h)
PAS.FJBase
atLeaf
in class PAS.FJBase
void filteredAtLeaf(int l, int h)
public java.lang.String toString()
toString
in class java.lang.Object