public static class VecUtils.CollectDomain extends MRTask<VecUtils.CollectDomain>
Vec
A map-reduce task to collect up the unique values of an integer Vec
and returned as the domain for the Vec.DTask.DKeyTask<T extends DTask.DKeyTask,V extends Keyed>, DTask.RemoveCall_appendables, _fr, _fs, _hi, _keys, _left, _lo, _nhi, _nleft, _nlo, _nrite, _rite, _run_local, _topLocal_ex, _modifiesInputs| Constructor and Description |
|---|
VecUtils.CollectDomain() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyOver(VecUtils.CollectDomain that) |
long[] |
domain()
Returns exact numeric domain of given
Vec computed by this task. |
void |
map(Chunk ys)
Override with your map implementation.
|
VecUtils.CollectDomain |
read_impl(AutoBuffer ab)
Implementation of the
Iced serialization protocol, only called by
auto-genned code. |
void |
reduce(VecUtils.CollectDomain mrt)
Override to combine results from 'mrt' into 'this' MRTask.
|
protected void |
setupLocal()
Override to do any remote initialization on the 1st remote instance of
this object, for initializing node-local shared data structures.
|
AutoBuffer |
write_impl(AutoBuffer ab)
Implementation of the
Iced serialization protocol, only called by
auto-genned code. |
appendables, asyncExec, asyncExec, asyncExec, asyncExec, asyncExecOnAllNodes, block, closeLocal, compute2, dfork, dfork, dfork, dfork, dinvoke, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAllNodes, getResult, isReleasable, map, map, map, map, map, map, map, map, map, map, map, map, onCompletion, onExceptionalCompletion, outputFrame, outputFrame, outputFrame, postGlobal, priority, profString, self, setProfilegetDException, hasException, logVerbose, onAck, onAckAck, setExceptionclone, compute, frozenType, icer, nextThrPriority, read, readJSON_impl, readJSON, write, writeJSON_impl, writeJSON__tryComplete, addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, setCompleter, setPendingCount, setRawResult, tryCompleteadapt, 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, tryUnforkprotected void setupLocal()
MRTasksetupLocal in class MRTask<VecUtils.CollectDomain>public void map(Chunk ys)
MRTaskmap in class MRTask<VecUtils.CollectDomain>public void reduce(VecUtils.CollectDomain mrt)
MRTaskreduce in class MRTask<VecUtils.CollectDomain>public AutoBuffer write_impl(AutoBuffer ab)
FreezableIced serialization protocol, only called by
auto-genned code. Not intended to be called by user code. Override only
for custom Iced serializers.write_impl in interface Freezable<VecUtils.CollectDomain>write_impl in class H2O.H2OCountedCompleter<VecUtils.CollectDomain>ab - AutoBuffer to write this object to.AutoBuffer for flow-coding.public VecUtils.CollectDomain read_impl(AutoBuffer ab)
FreezableIced serialization protocol, only called by
auto-genned code. Not intended to be called by user code. Override only
for custom Iced serializers.read_impl in interface Freezable<VecUtils.CollectDomain>read_impl in class H2O.H2OCountedCompleter<VecUtils.CollectDomain>ab - AutoBuffer to read this object from.public void copyOver(VecUtils.CollectDomain that)
copyOver in class DTask<VecUtils.CollectDomain>public long[] domain()
Vec computed by this task.
The domain is always sorted. Hence:
domain()[0] - minimal domain value
domain()[domain().length-1] - maximal domain value