private void update() throws IOException, InterruptedException {
Job job = JobCompatibility.newJob(getConf());
job.setJobName("TGC-UPDATE-" + storage.getPatchDirectory());
List<StageInput> inputList = new ArrayList<StageInput>();
inputList.add(new StageInput(
storage.getHeadContents("*").toString(),
TemporaryInputFormat.class,
BaseMapper.class));
inputList.add(new StageInput(
storage.getPatchContents("*").toString(),
TemporaryInputFormat.class,
PatchMapper.class));
StageInputDriver.set(job, inputList);
job.setInputFormatClass(StageInputFormat.class);