public class ConnectedSource extends BaseSource implements Receptor
Constructor and Description |
---|
ConnectedSource() |
ConnectedSource(java.lang.String edge) |
ConnectedSource(java.lang.String edge,
java.lang.String inputkey) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String name,
DataPartition<?> data) |
void |
execute()
Execute without an incoming message
|
java.lang.String |
getEdge() |
IONames |
getReceivableNames()
This method should return a set of receivable names, that are expected by this receptor.
|
void |
prepare(Config cfg,
TaskContext ctx)
Prepare the task to be executed
|
void |
setEdge(java.lang.String edge) |
public ConnectedSource()
public ConnectedSource(java.lang.String edge)
public ConnectedSource(java.lang.String edge, java.lang.String inputkey)
public void execute()
ISource
public void prepare(Config cfg, TaskContext ctx)
INode
public java.lang.String getEdge()
public void setEdge(java.lang.String edge)
public void add(java.lang.String name, DataPartition<?> data)
public IONames getReceivableNames()
Receptor
If Collector
C of task graph TG1 collects variable "var1" and C's parallelism is n, If
Receptor
R of task graph TG2 is interested in receiving "var1", R's parallelism should
be equal to n and, R should have the same distribution as C among the workers.
getReceivableNames
in interface Receptor