code: public void write(DataOutput out) throws IOException {
      Text.writeString(out, jobFile);
      taskId.write(out);
      out.writeInt(partition);
      out.writeInt(numSlotsRequired);
      taskStatus.write(out);
      skipRanges.write(out);
      out.writeBoolean(skipping);
      out.writeBoolean(jobCleanup);
      if (jobCleanup) {
        WritableUtils.writeEnum(out, jobRunStateForCleanup);
      }
      out.writeBoolean(jobSetup);
      Text.writeString(out, username);
      out.writeBoolean(writeSkipRecs);
      out.writeBoolean(taskCleanup);  
      extraData.write(out);
    }
docs: //////////////////////////////////////////