public abstract class MRTask<T extends MRTask> extends DRemoteTask<T>
Modifier and Type | Field and Description |
---|---|
protected int |
_hi |
protected int |
_lo |
protected boolean |
_runSingleThreaded |
_fs, _is_local, _keys, _top_level
_cls, _eFromNode, _exception, _fname, _lineNum, _msg, _mth
Constructor and Description |
---|
MRTask() |
Modifier and Type | Method and Description |
---|---|
int |
hi() |
void |
init() |
void |
lcompute()
Do all the keys in the list associated with this Node.
|
int |
lo() |
void |
lonCompletion(jsr166y.CountedCompleter caller) |
abstract void |
map(Key key)
Run some useful function over this local key, and
record the results in the this MRTask.
|
long |
memOverheadPerChunk() |
boolean |
onExceptionalCompletion(java.lang.Throwable ex,
jsr166y.CountedCompleter caller)
Performs an action when method
ForkJoinTask.completeExceptionally(java.lang.Throwable)
is invoked or method CountedCompleter.compute() throws an exception, and
this task has not otherwise already completed normally. |
alsoBlockFor, alsoBlockFor, block, clone, compute2, dfork, getFutures, invoke, invokeOnAllNodes, isReleasable, keys, onCompletion, postGlobal, reduce, reduceAlsoBlock
copyOver, dinvoke, frozenType, getDException, hasException, logVerbose, newInstance, onAck, onAckAck, read, setException, toDocField, write, writeJSONFields
compute, priority
addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, setCompleter, setPendingCount, setRawResult, tryComplete
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, 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, tryUnfork
protected transient int _lo
protected transient int _hi
protected boolean _runSingleThreaded
public long memOverheadPerChunk()
public void init()
init
in class DRemoteTask<T extends MRTask>
public abstract void map(Key key)
public final void lcompute()
lcompute
in class DRemoteTask<T extends MRTask>
public void lonCompletion(jsr166y.CountedCompleter caller)
lonCompletion
in class DRemoteTask<T extends MRTask>
public final boolean onExceptionalCompletion(java.lang.Throwable ex, jsr166y.CountedCompleter caller)
jsr166y.CountedCompleter
ForkJoinTask.completeExceptionally(java.lang.Throwable)
is invoked or method CountedCompleter.compute()
throws an exception, and
this task has not otherwise already completed normally. On
entry to this method, this task ForkJoinTask.isCompletedAbnormally()
. The return value of this
method controls further propagation: If true
and this
task has a completer, then this completer is also completed
exceptionally. The default implementation of this method does
nothing except return true
.onExceptionalCompletion
in class DTask<T extends MRTask>
ex
- the exceptioncaller
- the task invoking this method (which may
be this task itself).public final int lo()
public final int hi()