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, progress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clean, close, onMessage
public KGatherBatchPartialReceiver(int dest, int limitPerKey)
protected boolean isAllQueuesEmpty(java.util.Queue<java.lang.Object> targetSendQueue)
isAllQueuesEmpty
in class KeyedReceiver
targetSendQueue
- message queue for the current targetprotected boolean sendToTarget(boolean needsFurtherProgress, boolean sourcesFinished, int target, java.util.Queue<java.lang.Object> targetSendQueue)
sendToTarget
in class KeyedReceiver
needsFurtherProgress
- 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