@Override public void readFields(DataInput in) throws IOException { // read Partition class name String className = in.readUTF(); // instantiate Partition object Class<?> clz = ClassUtils.loadClass(className); if (clz == null) { throw new SqoopException(MRExecutionError.MAPRED_EXEC_0009, className); } try { partition = (Partition) clz.newInstance(); } catch (Exception e) { throw new SqoopException(MRExecutionError.MAPRED_EXEC_0010, className, e); } // read Partition object content partition.readFields(in); }