public class BJoinStudentExample extends KeyedBenchWorker
Modifier and Type | Class and Description |
---|---|
class |
BJoinStudentExample.JoinReceiver
The final result receiver class, it will get an iterator object which contains the
key and value pairs of each result from the join operation
|
protected class |
BJoinStudentExample.MapWorker
This class is responsible of generating and sending the message to the join operation,
This is essentially the source task for this join example.
|
experimentData, finishedSources, inputDataArray, jobParameters, logicalPlan, resultsRecorder, sourcesDone, workerId
Constructor and Description |
---|
BJoinStudentExample() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
compute(WorkerEnvironment workerEnv) |
protected void |
finishCommunication(int src) |
protected boolean |
isDone() |
protected boolean |
progressCommunication() |
protected boolean |
sendMessages(int task,
java.lang.Object key,
java.lang.Object data,
int flag) |
protected boolean |
sendMessages(int task,
java.lang.Object key,
java.lang.Object data,
int flag,
int tag)
Messages that are sent to the join operation are sent to the communication layer
|
execute, progress, verifyResults
protected void compute(WorkerEnvironment workerEnv)
compute
in class KeyedBenchWorker
protected boolean sendMessages(int task, java.lang.Object key, java.lang.Object data, int flag, int tag)
task
- task idkey
- the key of the messagedata
- the data for this messageflag
- flag that holds indicators such as SYNC_EMPTYtag
- Specifies which partition of the join this message belongs topublic void close()
close
in class KeyedBenchWorker
protected boolean progressCommunication()
progressCommunication
in class KeyedBenchWorker
protected boolean isDone()
isDone
in class KeyedBenchWorker
protected boolean sendMessages(int task, java.lang.Object key, java.lang.Object data, int flag)
sendMessages
in class KeyedBenchWorker
protected void finishCommunication(int src)
finishCommunication
in class KeyedBenchWorker