@Override public void invoke(IN record) throws Exception { try { format.writeRecord(record); } catch (Exception ex) { cleanup(); throw ex; } }
format.writeRecord(element);
@Override public void invoke(IN record) throws Exception { try { format.writeRecord(record); } catch (Exception ex) { cleanup(); throw ex; } }
@Override public void invoke(IN record) throws Exception { try { format.writeRecord(record); } catch (Exception ex) { cleanup(); throw ex; } }
@Override public void invoke(IN record) throws Exception { try { format.writeRecord(record); } catch (Exception ex) { cleanup(); throw ex; } }
@Override public void writeRecord(IT record) throws IOException { String subDirectory = getDirectoryForRecord(record); OutputFormat<IT> format; if (formatsPerSubdirectory.containsKey(subDirectory)) { format = formatsPerSubdirectory.get(subDirectory); } else { format = createFormatForDirectory(new Path(rootOutputPath, subDirectory)); format.open(taskNumber, numTasks); formatsPerSubdirectory.put(subDirectory, format); } format.writeRecord(record); }
@Override public void writeRecord(IT record) throws IOException { String subDirectory = getDirectoryForRecord(record); OutputFormat<IT> format; if (formatsPerSubdirectory.containsKey(subDirectory)) { format = formatsPerSubdirectory.get(subDirectory); } else { format = createFormatForDirectory(new Path(rootOutputPath, subDirectory)); format.open(taskNumber, numTasks); formatsPerSubdirectory.put(subDirectory, format); } format.writeRecord(record); }
format.writeRecord(record); format.writeRecord(record);
format.writeRecord(element);
format.writeRecord(record); format.writeRecord(record);
format.writeRecord(record); format.writeRecord(record);
format.writeRecord(element);
format.writeRecord(record); format.writeRecord(record);