/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { type = HadoopTaskType.fromOrdinal(in.readByte()); jobId = (HadoopJobId)in.readObject(); taskNum = in.readInt(); attempt = in.readInt(); inputSplit = (HadoopInputSplit)in.readObject(); if (in.readBoolean()) { mapperIdxSet = true; mapperIdx = in.readInt(); } else mapperIdxSet = false; }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { type = HadoopTaskType.fromOrdinal(in.readByte()); jobId = (HadoopJobId)in.readObject(); taskNum = in.readInt(); attempt = in.readInt(); inputSplit = (HadoopInputSplit)in.readObject(); if (in.readBoolean()) { mapperIdxSet = true; mapperIdx = in.readInt(); } else mapperIdxSet = false; }