/** * Make the move task in the GenMRProcContext following the FileSinkOperator a dependent of all * possible subtrees branching from the ConditionalTask. * * @param ctx * @param newOutput * @param cndTsk */ private void linkMoveTask( GenMRProcContext ctx, FileSinkOperator newOutput, ConditionalTask cndTsk) { List<Task<MoveWork>> mvTasks = ctx.getMvTask(); Task<MoveWork> mvTask = findMoveTask(mvTasks, newOutput); for (Task<? extends Serializable> tsk : cndTsk.getListTasks()) { linkMoveTask(ctx, mvTask, tsk); } }
private void LinkMoveTask( GenMRProcContext ctx, FileSinkOperator newOutput, ConditionalTask cndTsk) { List<Task<? extends Serializable>> mvTasks = ctx.getMvTask(); Task<? extends Serializable> mvTask = findMoveTask(mvTasks, newOutput); if (mvTask != null) { for (Task<? extends Serializable> tsk : cndTsk.getListTasks()) { tsk.addDependentTask(mvTask); } } }