hex.gram
Class Gram.GramTask

java.lang.Object
  extended by jsr166y.ForkJoinTask<java.lang.Void>
      extended by jsr166y.CountedCompleter
          extended by water.H2O.H2OCountedCompleter
              extended by water.DTask
                  extended by water.MRTask2<T>
                      extended by hex.FrameTask<Gram.GramTask>
                          extended by hex.gram.Gram.GramTask
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.concurrent.Future<java.lang.Void>, Freezable
Enclosing class:
Gram

public static class Gram.GramTask
extends FrameTask<Gram.GramTask>

See Also:
Serialized Form

Field Summary
 Gram _gram
           
 
Fields inherited from class hex.FrameTask
_catOffsets, _cats, _nums, _standardize
 
Fields inherited from class water.MRTask2
_fr, _fs, _hi, _left, _lo, _nleft, _nodes, _nrite, _outputFrame, _rite, _topLocal
 
Fields inherited from class water.DTask
_cls, _eFromNode, _exception, _fname, _lineNum, _msg, _mth
 
Constructor Summary
Gram.GramTask(Job job, boolean standardize, boolean hasIntercept)
           
 
Method Summary
protected  void chunkInit()
          Override this to initialize at the beginning of chunk processing.
protected  void processRow(double[] nums, int ncats, int[] cats)
           
 void reduce(Gram.GramTask gt)
          Override to combine results from 'mrt' into 'this' MRTask2.
 
Methods inherited from class hex.FrameTask
adaptFrame, catOffsets, cats, chunkDone, dfork2, doIt, fullN, largestCat, map, normMul, normSub, nums, processRow, standardize
 
Methods inherited from class water.MRTask2
clone, closeLocal, compute2, dfork, dfork, dfork, dfork, dinvoke, doAll, doAll, doAll, doAll, getResult, map, map, map, map, map, map, map, map, map, map, map, onCompletion, onExceptionalCompletion, postGlobal, profString, reduce4, setupLocal, vecs
 
Methods inherited from class water.DTask
copyOver, 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

_gram

public Gram _gram
Constructor Detail

Gram.GramTask

public Gram.GramTask(Job job,
                     boolean standardize,
                     boolean hasIntercept)
Method Detail

chunkInit

protected void chunkInit()
Description copied from class: FrameTask
Override this to initialize at the beginning of chunk processing.

Overrides:
chunkInit in class FrameTask<Gram.GramTask>

processRow

protected void processRow(double[] nums,
                          int ncats,
                          int[] cats)
Overrides:
processRow in class FrameTask<Gram.GramTask>

reduce

public void reduce(Gram.GramTask gt)
Description copied from class: MRTask2
Override to combine results from 'mrt' into 'this' MRTask2. Both 'this' and 'mrt' are guaranteed to either have map() run on them, or be the results of a prior reduce(). Reduce is optional if, e.g., the result is some output vector.

Overrides:
reduce in class MRTask2<Gram.GramTask>