public class KGatherBatchPartialReceiver extends KeyedReceiver
batchDone, dataFlowOperation, destination, executor, finishedSources, isEmptySent, isFinalBatchReceiver, keyLimit, limitPerKey, messages, representSource, representSourceSet, sendQueue, thisSources| Constructor and Description |
|---|
KGatherBatchPartialReceiver(int dest,
int limitPerKey) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isAllQueuesEmpty(java.util.Queue<java.lang.Object> targetSendQueue)
checks if the queue structures used to send data is empty.
|
protected boolean |
sendToTarget(boolean needsFurtherProgress,
boolean sourcesFinished,
int target,
java.util.Queue<java.lang.Object> targetSendQueue)
Called from the progress method to perform the communication calls to send the queued messages
|
checkIfEmptyIsSent, finishProgress, init, isComplete, isSourcesFinished, moveMessagesToSendQueue, moveMessageToSendQueue, offerMessage, onFinish, onMessage, progressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclean, close, onMessagepublic KGatherBatchPartialReceiver(int dest,
int limitPerKey)
protected boolean isAllQueuesEmpty(java.util.Queue<java.lang.Object> targetSendQueue)
isAllQueuesEmpty in class KeyedReceivertargetSendQueue - message queue for the current targetprotected boolean sendToTarget(boolean needsFurtherProgress,
boolean sourcesFinished,
int target,
java.util.Queue<java.lang.Object> targetSendQueue)
sendToTarget in class KeyedReceiverneedsFurtherProgress - current state of needsFurtherProgress valuesourcesFinished - specifies if the sources have completedtarget - the target(which is a source in this instance) from which the messages are senttargetSendQueue - the data structure that contains all the message data