mroJobMap = new HashMap<MapReduceOper, MRJobStats>();
}
@Override
public void visitMROp(MapReduceOper mr) throws VisitorException {
MRJobStats js = new MRJobStats(
mr.getOperatorKey().toString(), jobPlan);
jobPlan.add(js);
List<MapReduceOper> preds = getPlan().getPredecessors(mr);
if (preds != null) {
for (MapReduceOper pred : preds) {
MRJobStats jpred = mroJobMap.get(pred);
if (!jobPlan.isConnected(jpred, js)) {
jobPlan.connect(jpred, js);
}
}
}