|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsr166y.ForkJoinTask<java.lang.Void>
jsr166y.CountedCompleter
water.H2O.H2OCountedCompleter
water.DTask<T>
water.DRemoteTask<T>
water.MRTask
water.exec.Helpers.ScallarCollector
public abstract static class Helpers.ScallarCollector
Field Summary | |
---|---|
int |
_col
|
Key |
_key
|
protected double |
_result
|
Fields inherited from class water.MRTask |
---|
_hi, _lo |
Fields inherited from class water.DRemoteTask |
---|
_fs, _is_local, _keys |
Fields inherited from class water.DTask |
---|
_cls, _eFromNode, _exception, _fname, _lineNum, _msg, _mth |
Constructor Summary | |
---|---|
Helpers.ScallarCollector(Key key,
int col,
double initVal)
|
Method Summary | |
---|---|
protected abstract void |
collect(double x)
|
void |
map(Key key)
Run some useful function over this local key, and record the results in the this MRTask. |
protected abstract void |
reduce(double x)
|
void |
reduce(DRemoteTask drt)
|
double |
result()
|
Methods inherited from class water.MRTask |
---|
hi, init, lcompute, lo, lonCompletion, memOverheadPerChunk, onExceptionalCompletion |
Methods inherited from class water.DRemoteTask |
---|
alsoBlockFor, alsoBlockFor, clone, compute2, dfork, getFutures, invoke, invokeOnAllNodes, keys, merge, merge, merge, onCompletion, reduceAlsoBlock |
Methods inherited from class water.DTask |
---|
copyOver, dinvoke, frozenType, getDException, hasException, logVerbose, newInstance, onAck, onAckAck, read, setException, toDocField, write, writeJSONFields |
Methods inherited from class water.H2O.H2OCountedCompleter |
---|
compute, priority |
Methods inherited from class jsr166y.CountedCompleter |
---|
addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, setCompleter, setPendingCount, setRawResult, tryComplete |
Methods inherited from class jsr166y.ForkJoinTask |
---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Key _key
public int _col
protected double _result
Constructor Detail |
---|
public Helpers.ScallarCollector(Key key, int col, double initVal)
Method Detail |
---|
protected abstract void collect(double x)
protected abstract void reduce(double x)
public double result()
public void map(Key key)
MRTask
map
in class MRTask
public void reduce(DRemoteTask drt)
reduce
in class DRemoteTask
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |