public class DGatherBatchFinalReceiver extends java.lang.Object implements MessageReceiver
Constructor and Description |
---|
DGatherBatchFinalReceiver(BulkReceiver bulkReceiver,
java.lang.String shuffleDir) |
Modifier and Type | Method and Description |
---|---|
void |
clean()
Clean any state associated with the receiver and go to initial state
|
void |
close()
Close the receiver
|
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
|
boolean |
isComplete()
Weather we are complete a set of messages
|
boolean |
onMessage(int source,
int path,
int target,
int flags,
java.lang.Object object)
The actual message callback
|
boolean |
progress()
Method used to communicationProgress work
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onMessage
public DGatherBatchFinalReceiver(BulkReceiver bulkReceiver, java.lang.String shuffleDir)
public void init(Config cfg, DataFlowOperation op, java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> expectedIds)
MessageReceiver
target -> source tasks
init
in interface MessageReceiver
expectedIds
- expected task idspublic boolean onMessage(int source, int path, int target, int flags, java.lang.Object object)
MessageReceiver
onMessage
in interface MessageReceiver
source
- the source taskpath
- the path that is taken by the message, that is intermediate targetstarget
- the target of this receiverflags
- the communication flagsobject
- the actual messagepublic boolean progress()
progress
in interface MessageReceiver
public boolean isComplete()
MessageReceiver
isComplete
in interface MessageReceiver
public void close()
MessageReceiver
close
in interface MessageReceiver
public void clean()
MessageReceiver
clean
in interface MessageReceiver