public abstract class FrameExtractor extends H2O.H2OCountedCompleter
Constructor and Description |
---|
FrameExtractor(Frame dataset,
Key[] destKeys,
Key jobKey) |
Modifier and Type | Method and Description |
---|---|
void |
compute2() |
protected abstract long[][] |
computeEspcPerSplit(long[] espc,
long nrows)
Compute espc for output vectors for each split.
|
protected abstract MRTask2 |
createNewWorker(H2O.H2OCountedCompleter completer,
Vec[] inputVecs,
int split)
Create a new worker which has to setup given completer.
|
protected Key[] |
generateDestKeys(Key masterKey,
int numberOfKeys)
Generates default names for destination keys.
|
Frame[] |
getResult()
Blocking call to obtain a result of computation.
|
protected Vec[][] |
makeTemplates()
Create a templates for vector composing output frame
|
protected abstract int |
numOfOutputs()
Return a number of resulting frame which this task produces.
|
void |
onCompletion(jsr166y.CountedCompleter caller)
Performs an action when method
CountedCompleter.tryComplete() is invoked
and there are no pending counts, or when the unconditional
method CountedCompleter.complete(java.lang.Void) is invoked. |
clone, compute, onExceptionalCompletion, 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
public void compute2()
compute2
in class H2O.H2OCountedCompleter
public Frame[] getResult()
public void onCompletion(jsr166y.CountedCompleter caller)
jsr166y.CountedCompleter
CountedCompleter.tryComplete()
is invoked
and there are no pending counts, or when the unconditional
method CountedCompleter.complete(java.lang.Void)
is invoked. By default, this method
does nothing.onCompletion
in class jsr166y.CountedCompleter
caller
- the task invoking this method (which may
be this task itself).protected abstract MRTask2 createNewWorker(H2O.H2OCountedCompleter completer, Vec[] inputVecs, int split)
protected Vec[][] makeTemplates()
protected abstract long[][] computeEspcPerSplit(long[] espc, long nrows)
espc
- input vector espcnrows
- total number of rows in input vectorprotected Key[] generateDestKeys(Key masterKey, int numberOfKeys)
masterKey
- key for input datasetnumberOfKeys
- number of keys to generateprotected abstract int numOfOutputs()