return null; // signify unknown
}
}
public static ThriftJobStatus toThrift(JobStatus job) {
ThriftJobStatus ret = new ThriftJobStatus();
ret.setCleanupProgress(job.cleanupProgress());
ret.setMapProgress(job.mapProgress());
ret.setReduceProgress(job.reduceProgress());
ret.setPriority(toThrift(job.getJobPriority()));
ret.setRunState(jobRunStateToThrift(job.getRunState()));
ret.setSchedulingInfo(job.getSchedulingInfo());
ret.setSetupProgress(job.setupProgress());
ret.setStartTime(job.getStartTime());
ret.setUser(job.getUsername());
ret.setJobID(toThrift(job.getJobID()));
return ret;
}