public class MToNSimple extends java.lang.Object implements DataFlowOperation, ChannelReceiver
| Constructor and Description |
|---|
MToNSimple(Config cfg,
TWSChannel channel,
LogicalPlan tPlan,
java.util.Set<java.lang.Integer> srcs,
java.util.Set<java.lang.Integer> dests,
MessageReceiver finalRcvr,
MessageReceiver partialRcvr,
MessageType dType,
MessageType rcvType,
int e,
MessageSchema messageSchema) |
MToNSimple(Config cfg,
TWSChannel channel,
LogicalPlan tPlan,
java.util.Set<java.lang.Integer> srcs,
java.util.Set<java.lang.Integer> dests,
MessageReceiver finalRcvr,
MessageReceiver partialRcvr,
MessageType dType,
MessageType rcvType,
MessageType kType,
MessageType rcvKType,
int e,
MessageSchema messageSchema) |
MToNSimple(TWSChannel channel,
java.util.Set<java.lang.Integer> srcs,
java.util.Set<java.lang.Integer> dests,
MessageReceiver finalRcvr,
MessageReceiver partialRcvr,
MessageSchema messageSchema) |
MToNSimple(TWSChannel channel,
java.util.Set<java.lang.Integer> sourceTasks,
java.util.Set<java.lang.Integer> destTasks,
MessageReceiver finalRcvr,
MessageReceiver partialRcvr,
MessageType dataType,
MessageSchema messageSchema) |
MToNSimple(TWSChannel channel,
java.util.Set<java.lang.Integer> sourceTasks,
java.util.Set<java.lang.Integer> destTasks,
MessageReceiver finalRcvr,
MessageReceiver partialRcvr,
MessageType dataType,
MessageType keyType,
MessageSchema messageSchema) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the operation
|
void |
finish(int source)
If this is a larger transfer of dataflow style, we need to finish
|
MessageType |
getDataType()
returns the data type that is associated with the data flow operation
|
MessageType |
getKeyType()
returns the key type that is associated with the data flow operation
|
LogicalPlan |
getLogicalPlan()
Task plan associated with this operation
|
MessageType |
getReceiveDataType()
returns the data type that is associated with the data flow operation
|
MessageType |
getReceiveKeyType()
returns the key type that is associated with the data flow operation
|
java.util.Set<java.lang.Integer> |
getSources()
Get the sources of the operation
|
java.util.Set<java.lang.Integer> |
getTargets()
Get targets of operation
|
java.lang.String |
getUniqueId()
Returns a unique id for this operation.
|
void |
init(Config cfg,
MessageType t,
LogicalPlan logicalPlan,
int ed)
Initialize
|
boolean |
isComplete()
Weather the operation doesn't have any pending sends or receives
|
boolean |
isDelegateComplete() |
boolean |
progress()
Progress the pending dataflow operations
|
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> |
receiveExpectedTaskIds() |
boolean |
receiveMessage(MessageHeader header,
java.lang.Object object)
Receive a fully built message
|
boolean |
receiveSendInternally(int source,
int path,
int destination,
int flags,
java.lang.Object message)
For partial receives the path and
|
protected java.util.Set<java.lang.Integer> |
receivingExecutors() |
void |
reset()
Reset and get the operation to initial state
|
boolean |
send(int source,
java.lang.Object message,
int flags)
Send a send message, this call will work asynchronously
|
boolean |
send(int source,
java.lang.Object message,
int flags,
int target)
Send the message on a specific path
|
boolean |
sendPartial(int source,
java.lang.Object message,
int flags)
Use this to inject partial results in a distributed dataflow operation
|
boolean |
sendPartial(int source,
java.lang.Object message,
int flags,
int target)
Send partial message on a specific path
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleReceivedChannelMessage, sendCompletedpublic MToNSimple(TWSChannel channel, java.util.Set<java.lang.Integer> sourceTasks, java.util.Set<java.lang.Integer> destTasks, MessageReceiver finalRcvr, MessageReceiver partialRcvr, MessageType dataType, MessageType keyType, MessageSchema messageSchema)
public MToNSimple(TWSChannel channel, java.util.Set<java.lang.Integer> sourceTasks, java.util.Set<java.lang.Integer> destTasks, MessageReceiver finalRcvr, MessageReceiver partialRcvr, MessageType dataType, MessageSchema messageSchema)
public MToNSimple(TWSChannel channel, java.util.Set<java.lang.Integer> srcs, java.util.Set<java.lang.Integer> dests, MessageReceiver finalRcvr, MessageReceiver partialRcvr, MessageSchema messageSchema)
public MToNSimple(Config cfg, TWSChannel channel, LogicalPlan tPlan, java.util.Set<java.lang.Integer> srcs, java.util.Set<java.lang.Integer> dests, MessageReceiver finalRcvr, MessageReceiver partialRcvr, MessageType dType, MessageType rcvType, int e, MessageSchema messageSchema)
public MToNSimple(Config cfg, TWSChannel channel, LogicalPlan tPlan, java.util.Set<java.lang.Integer> srcs, java.util.Set<java.lang.Integer> dests, MessageReceiver finalRcvr, MessageReceiver partialRcvr, MessageType dType, MessageType rcvType, MessageType kType, MessageType rcvKType, int e, MessageSchema messageSchema)
public void init(Config cfg, MessageType t, LogicalPlan logicalPlan, int ed)
public boolean sendPartial(int source,
java.lang.Object message,
int flags)
DataFlowOperationsendPartial in interface DataFlowOperationmessage - messagepublic boolean sendPartial(int source,
java.lang.Object message,
int flags,
int target)
DataFlowOperationsendPartial in interface DataFlowOperationsource - the sourcemessage - message as a generic objecttarget - the final targetpublic boolean send(int source,
java.lang.Object message,
int flags)
DataFlowOperationsend in interface DataFlowOperationsource - source taskmessage - message as a generic objectpublic boolean send(int source,
java.lang.Object message,
int flags,
int target)
DataFlowOperationsend in interface DataFlowOperationsource - source taskmessage - a generic java objecttarget - target taskpublic boolean isComplete()
DataFlowOperationisComplete in interface DataFlowOperationpublic boolean isDelegateComplete()
isDelegateComplete in interface DataFlowOperationpublic boolean progress()
DataFlowOperationprogress in interface DataFlowOperationpublic void close()
DataFlowOperationclose in interface DataFlowOperationpublic void reset()
DataFlowOperationreset in interface DataFlowOperationpublic void finish(int source)
DataFlowOperationfinish in interface DataFlowOperationpublic LogicalPlan getLogicalPlan()
DataFlowOperationgetLogicalPlan in interface DataFlowOperationpublic java.lang.String getUniqueId()
DataFlowOperationgetUniqueId in interface DataFlowOperationpublic boolean receiveSendInternally(int source,
int path,
int destination,
int flags,
java.lang.Object message)
ChannelReceiverreceiveSendInternally in interface ChannelReceiversource - the sourcepath - target to be sentdestination - the path to be usedflags - flagsmessage - messageprotected java.util.Set<java.lang.Integer> receivingExecutors()
protected java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> receiveExpectedTaskIds()
public boolean receiveMessage(MessageHeader header, java.lang.Object object)
ChannelReceiverreceiveMessage in interface ChannelReceiverheader - the headerobject - the built messagepublic java.util.Set<java.lang.Integer> getSources()
DataFlowOperationgetSources in interface DataFlowOperationpublic MessageType getKeyType()
DataFlowOperationgetKeyType in interface DataFlowOperationpublic MessageType getDataType()
DataFlowOperationgetDataType in interface DataFlowOperationpublic MessageType getReceiveDataType()
DataFlowOperationgetReceiveDataType in interface DataFlowOperationpublic MessageType getReceiveKeyType()
DataFlowOperationgetReceiveKeyType in interface DataFlowOperationpublic java.util.Set<java.lang.Integer> getTargets()
DataFlowOperationgetTargets in interface DataFlowOperation