public static void setTaskPlan(String alias_id,
      TableScanOperator topOp, Task<?> task, boolean local,
      GenMRProcContext opProcCtx, PrunedPartitionList pList) throws SemanticException {
    setMapWork(((MapredWork) task.getWork()).getMapWork(), opProcCtx.getParseCtx(),
        opProcCtx.getInputs(), pList, topOp, alias_id, opProcCtx.getConf(), local);
    opProcCtx.addSeenOp(task, topOp);
  }
set the current task in the mapredWork.

@param alias_id
         current alias
@param topOp
         the top operator of the stack
@param task
         current task
@param local
         whether you need to add to map-reduce or local work
@param opProcCtx
         processing context
@param pList
         pruned partition list. If it is null it will be computed on-the-fly.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java