static final class ConcurrentHashMapV8.MapReduceMappingsToIntTask<K,V> extends ConcurrentHashMapV8.BulkTask<K,V,java.lang.Integer>
ForkJoinTask.AdaptedCallable<T>, ForkJoinTask.AdaptedRunnable<T>, ForkJoinTask.AdaptedRunnableAction, ForkJoinTask.ExceptionNode, ForkJoinTask.RunnableExecuteAction
Modifier and Type | Field and Description |
---|---|
(package private) int |
basis |
(package private) ConcurrentHashMapV8.MapReduceMappingsToIntTask<K,V> |
nextRight |
(package private) ConcurrentHashMapV8.IntByIntToInt |
reducer |
(package private) int |
result |
(package private) ConcurrentHashMapV8.MapReduceMappingsToIntTask<K,V> |
rights |
(package private) ConcurrentHashMapV8.ObjectByObjectToInt<? super K,? super V> |
transformer |
baseIndex, baseLimit, baseSize, batch, index, next, tab
completer, pending
CANCELLED, DONE_MASK, EXCEPTIONAL, NORMAL, SIGNAL, SMASK, status
Constructor and Description |
---|
MapReduceMappingsToIntTask(ConcurrentHashMapV8.BulkTask<K,V,?> p,
int b,
int i,
int f,
ConcurrentHashMapV8.Node<K,V>[] t,
ConcurrentHashMapV8.MapReduceMappingsToIntTask<K,V> nextRight,
ConcurrentHashMapV8.ObjectByObjectToInt<? super K,? super V> transformer,
int basis,
ConcurrentHashMapV8.IntByIntToInt reducer) |
Modifier and Type | Method and Description |
---|---|
void |
compute()
The main computation performed by this task.
|
java.lang.Integer |
getRawResult()
Returns the result of the computation.
|
advance
addToPendingCount, compareAndSetPendingCount, complete, decrementPendingCountUnlessZero, exec, firstComplete, getCompleter, getPendingCount, getRoot, internalPropagateException, nextComplete, onCompletion, onExceptionalCompletion, propagateCompletion, quietlyCompleteRoot, setPendingCount, setRawResult, tryComplete
adapt, adapt, adapt, cancel, cancelIgnoringExceptions, compareAndSetForkJoinTaskTag, completeExceptionally, doExec, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpExpungeStaleExceptions, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, recordExceptionalCompletion, reinitialize, rethrow, setForkJoinTaskTag, trySetSignal, tryUnfork, uncheckedThrow
final ConcurrentHashMapV8.ObjectByObjectToInt<? super K,? super V> transformer
final ConcurrentHashMapV8.IntByIntToInt reducer
final int basis
int result
ConcurrentHashMapV8.MapReduceMappingsToIntTask<K,V> rights
ConcurrentHashMapV8.MapReduceMappingsToIntTask<K,V> nextRight
MapReduceMappingsToIntTask(ConcurrentHashMapV8.BulkTask<K,V,?> p, int b, int i, int f, ConcurrentHashMapV8.Node<K,V>[] t, ConcurrentHashMapV8.MapReduceMappingsToIntTask<K,V> nextRight, ConcurrentHashMapV8.ObjectByObjectToInt<? super K,? super V> transformer, int basis, ConcurrentHashMapV8.IntByIntToInt reducer)
public final java.lang.Integer getRawResult()
CountedCompleter
null
, which is appropriate for Void
actions, but in other cases should be overridden, almost
always to return a field or function of a field that
holds the result upon completion.getRawResult
in class CountedCompleter<java.lang.Integer>
public final void compute()
CountedCompleter
compute
in class CountedCompleter<java.lang.Integer>