water.persist
Class PersistHdfsTask

java.lang.Object
  extended by jsr166y.ForkJoinTask<java.lang.Void>
      extended by jsr166y.CountedCompleter
          extended by water.H2O.H2OCountedCompleter
              extended by water.DTask<PersistHdfsTask>
                  extended by water.persist.PersistHdfsTask
All Implemented Interfaces:
java.io.Serializable, java.util.concurrent.Future<java.lang.Void>, Freezable

public class PersistHdfsTask
extends DTask<PersistHdfsTask>

Distributed task to store key on HDFS. If it is a simple value, it is simply stored on hdfs. For arraylets, chunks are stored in order by their home nodes. Each node continues storing chunks until the next to be stored has different home in which case the task is passed to the home node of that chunk.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class water.DTask
_cls, _eFromNode, _exception, _fname, _lineNum, _msg, _mth
 
Constructor Summary
PersistHdfsTask()
           
 
Method Summary
 void compute2()
           
static java.lang.String store2Hdfs(java.lang.String path, Key key)
           
 
Methods inherited from class water.DTask
clone, copyOver, dinvoke, frozenType, getDException, hasException, logVerbose, newInstance, onAck, onAckAck, onExceptionalCompletion, 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, onCompletion, 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
 

Constructor Detail

PersistHdfsTask

public PersistHdfsTask()
Method Detail

store2Hdfs

public static java.lang.String store2Hdfs(java.lang.String path,
                                          Key key)

compute2

public void compute2()
Specified by:
compute2 in class H2O.H2OCountedCompleter