static final class EquivalentConcurrentHashMapV8.MapReduceKeysToLongTask<K,V> extends EquivalentConcurrentHashMapV8.BulkTask<K,V,java.lang.Long>
ForkJoinTask.AdaptedCallable<T>, ForkJoinTask.AdaptedRunnable<T>, ForkJoinTask.AdaptedRunnableAction, ForkJoinTask.ExceptionNode
Modifier and Type | Field and Description |
---|---|
(package private) long |
basis |
(package private) EquivalentConcurrentHashMapV8.MapReduceKeysToLongTask<K,V> |
nextRight |
(package private) EquivalentConcurrentHashMapV8.LongByLongToLong |
reducer |
(package private) long |
result |
(package private) EquivalentConcurrentHashMapV8.MapReduceKeysToLongTask<K,V> |
rights |
(package private) EquivalentConcurrentHashMapV8.ObjectToLong<? super K> |
transformer |
baseIndex, baseLimit, baseSize, batch, index, next, tab
completer, pending
CANCELLED, DONE_MASK, EXCEPTIONAL, NORMAL, SIGNAL, SMASK, status
Constructor and Description |
---|
EquivalentConcurrentHashMapV8.MapReduceKeysToLongTask(EquivalentConcurrentHashMapV8.BulkTask<K,V,?> p,
int b,
int i,
int f,
EquivalentConcurrentHashMapV8.Node<K,V>[] t,
EquivalentConcurrentHashMapV8.MapReduceKeysToLongTask<K,V> nextRight,
EquivalentConcurrentHashMapV8.ObjectToLong<? super K> transformer,
long basis,
EquivalentConcurrentHashMapV8.LongByLongToLong reducer) |
Modifier and Type | Method and Description |
---|---|
void |
compute()
The main computation performed by this task.
|
java.lang.Long |
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 EquivalentConcurrentHashMapV8.ObjectToLong<? super K> transformer
final EquivalentConcurrentHashMapV8.LongByLongToLong reducer
final long basis
long result
EquivalentConcurrentHashMapV8.MapReduceKeysToLongTask<K,V> rights
EquivalentConcurrentHashMapV8.MapReduceKeysToLongTask<K,V> nextRight
EquivalentConcurrentHashMapV8.MapReduceKeysToLongTask(EquivalentConcurrentHashMapV8.BulkTask<K,V,?> p, int b, int i, int f, EquivalentConcurrentHashMapV8.Node<K,V>[] t, EquivalentConcurrentHashMapV8.MapReduceKeysToLongTask<K,V> nextRight, EquivalentConcurrentHashMapV8.ObjectToLong<? super K> transformer, long basis, EquivalentConcurrentHashMapV8.LongByLongToLong reducer)
public final java.lang.Long 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.Long>
public final void compute()
CountedCompleter
compute
in class CountedCompleter<java.lang.Long>