public class AstTopN.GrabTopNPQ<E extends java.lang.Comparable<E>> extends MRTask<AstTopN.GrabTopNPQ<E>>
MRTask.PostMapAction<T extends MRTask.PostMapAction<T>>
DTask.DKeyTask<T extends DTask.DKeyTask,V extends Keyed>, DTask.RemoveCall
Modifier and Type | Method and Description |
---|---|
void |
addOneValue(Chunk cs,
int rowIndex,
long absRowIndex,
java.util.PriorityQueue sortHeap) |
<T> void |
copyPQ2ArryD(java.util.PriorityQueue sortQueue,
double[] values) |
void |
copyPQ2ArryL(java.util.PriorityQueue sortQueue,
long[] values) |
void |
map(Chunk cs)
Override with your map implementation.
|
void |
mergeArraysD(long[] otherRow,
double[] otherValue) |
void |
mergeArraysL(long[] otherRow,
long[] otherValue) |
void |
postGlobal() |
void |
reduce(AstTopN.GrabTopNPQ<E> other)
Override to combine results from 'mrt' into 'this' MRTask.
|
appendables, asyncExecOnAllNodes, block, closeLocal, compute2, dfork, dfork, dfork, dfork, dfork, dinvoke, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAllNodes, getResult, getResult, isReleasable, map, map, map, map, map, map, map, map, map, map, map, modifiesVolatileVecs, onCompletion, onExceptionalCompletion, outputFrame, outputFrame, outputFrame, profile, profString, self, setupLocal, withPostMapAction
copyOver, getDException, hasException, logVerbose, onAck, onAckAck, setException
asBytes, clone, compute, compute1, currThrPriority, frozenType, icer, priority, read, readJSON, reloadFromBytes, write, writeJSON
__tryComplete, addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, setCompleter, setPendingCount, setRawResult, tryComplete
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, completeExceptionally, fork, get, 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 map(Chunk cs)
MRTask
map
in class MRTask<AstTopN.GrabTopNPQ<E extends java.lang.Comparable<E>>>
public void copyPQ2ArryL(java.util.PriorityQueue sortQueue, long[] values)
public <T> void copyPQ2ArryD(java.util.PriorityQueue sortQueue, double[] values)
public void reduce(AstTopN.GrabTopNPQ<E> other)
MRTask
reduce
in class MRTask<AstTopN.GrabTopNPQ<E extends java.lang.Comparable<E>>>
public void mergeArraysL(long[] otherRow, long[] otherValue)
public void mergeArraysD(long[] otherRow, double[] otherValue)
public void postGlobal()
postGlobal
in class MRTask<AstTopN.GrabTopNPQ<E extends java.lang.Comparable<E>>>
public void addOneValue(Chunk cs, int rowIndex, long absRowIndex, java.util.PriorityQueue sortHeap)