public class ReduceStreamingFinalReceiver extends ReduceStreamingReceiver
reduceFunctionbarriers, destination, isSyncSent, messages, operation, sendPendingMax, sourcesOfTarget, syncReceived, syncState, targetStates, workerId| Constructor and Description |
|---|
ReduceStreamingFinalReceiver(ReduceFunction function,
SingularReceiver receiver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleMessage(int source,
java.lang.Object message,
int flags,
int dest) |
void |
init(Config cfg,
DataFlowOperation op,
java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> expectedIds)
Initialize the message receiver with tasks from which messages are expected
For each sub edge in graph, for each path, gives the expected task ids
|
protected void |
onSyncEvent(int target,
byte[] value)
This method is called when there is a sync event on the operation
|
protected boolean |
sendSyncForward(int target)
Handle the sync
|
aggregate, isAllEmpty, isFilledToSend, sendToTargetallQueuesEmpty, allSyncsPresent, clean, isComplete, onFinish, onMessage, progressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, onMessagepublic ReduceStreamingFinalReceiver(ReduceFunction function, SingularReceiver receiver)
public void init(Config cfg, DataFlowOperation op, java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> expectedIds)
MessageReceivertarget -> source tasks
init in interface MessageReceiverinit in class ReduceStreamingReceiverexpectedIds - expected task idspublic boolean handleMessage(int source,
java.lang.Object message,
int flags,
int dest)
handleMessage in class ReduceStreamingReceiverprotected boolean sendSyncForward(int target)
SourceReceiversendSyncForward in class ReduceStreamingReceivertarget - targetprotected void onSyncEvent(int target,
byte[] value)
SourceReceiveronSyncEvent in class ReduceStreamingReceivertarget - the target to which the sync event belongvalue - the byte value, can be null