static final class PAS.FJLStats extends PAS.FJBase implements ParallelLongArray.SummaryStatistics
| Modifier and Type | Field and Description |
|---|---|
(package private) Ops.LongComparator |
comparator |
(package private) int |
indexOfMax |
(package private) int |
indexOfMin |
(package private) long |
max |
(package private) long |
min |
(package private) int |
size |
(package private) long |
sum |
hi, lo, next, pap| Constructor and Description |
|---|
FJLStats(AbstractParallelAnyArray pap,
int lo,
int hi,
PAS.FJBase next,
Ops.LongComparator comparator) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
atLeaf(int l,
int h)
Leaf computation
|
double |
average()
Returns the arithmetic average of all elements
|
(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
|
long |
max()
Returns the maximum element, or Long.MIN_VALUE if empty
|
long |
min()
Returns the minimum element, or Long.MAX_VALUE 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
|
long |
sum()
Returns the sum of all elements
|
java.lang.String |
toString() |
(package private) void |
updateMax(int i,
long x) |
(package private) void |
updateMin(int i,
long x) |
compute, internalComputeadapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnforkfinal Ops.LongComparator comparator
int size
long min
long max
long sum
int indexOfMin
int indexOfMax
FJLStats(AbstractParallelAnyArray pap, int lo, int hi, PAS.FJBase next, Ops.LongComparator comparator)
public int size()
ParallelLongArray.SummaryStatisticssize in interface ParallelLongArray.SummaryStatisticspublic long min()
ParallelLongArray.SummaryStatisticsmin in interface ParallelLongArray.SummaryStatisticspublic long max()
ParallelLongArray.SummaryStatisticsmax in interface ParallelLongArray.SummaryStatisticspublic long sum()
ParallelLongArray.SummaryStatisticssum in interface ParallelLongArray.SummaryStatisticspublic double average()
ParallelLongArray.SummaryStatisticsaverage in interface ParallelLongArray.SummaryStatisticspublic int indexOfMin()
ParallelLongArray.SummaryStatisticsindexOfMin in interface ParallelLongArray.SummaryStatisticspublic int indexOfMax()
ParallelLongArray.SummaryStatisticsindexOfMax in interface ParallelLongArray.SummaryStatisticsPAS.FJBase newSubtask(int l, int h, PAS.FJBase r)
PAS.FJBasenewSubtask in class PAS.FJBasevoid onReduce(PAS.FJBase right)
PAS.FJBaseonReduce in class PAS.FJBasevoid updateMin(int i,
long x)
void updateMax(int i,
long x)
void atLeaf(int l,
int h)
PAS.FJBaseatLeaf in class PAS.FJBasevoid filteredAtLeaf(int l,
int h)
public java.lang.String toString()
toString in class java.lang.Object