@Override public RecordWriter getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException { List<OutputFormat> formats = getNewApiFormats(CompatHandler.taskAttemptContext(context).getConfiguration()); List<RecordWriter> writers = new ArrayList<RecordWriter>(); for (OutputFormat format : formats) { writers.add(format.getRecordWriter(context)); } return new MultiNewRecordWriter(writers); }
@Override public RecordWriter getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException { List<OutputFormat> formats = getNewApiFormats(CompatHandler.taskAttemptContext(context).getConfiguration()); List<RecordWriter> writers = new ArrayList<RecordWriter>(); for (OutputFormat format : formats) { writers.add(format.getRecordWriter(context)); } return new MultiNewRecordWriter(writers); }
@Override public RecordWriter getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException { List<OutputFormat> formats = getNewApiFormats(CompatHandler.taskAttemptContext(context).getConfiguration()); List<RecordWriter> writers = new ArrayList<RecordWriter>(); for (OutputFormat format : formats) { writers.add(format.getRecordWriter(context)); } return new MultiNewRecordWriter(writers); }
@Override public RecordWriter getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException { List<OutputFormat> formats = getNewApiFormats(CompatHandler.taskAttemptContext(context).getConfiguration()); List<RecordWriter> writers = new ArrayList<RecordWriter>(); for (OutputFormat format : formats) { writers.add(format.getRecordWriter(context)); } return new MultiNewRecordWriter(writers); }
@Override public RecordWriter getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException { List<OutputFormat> formats = getNewApiFormats(CompatHandler.taskAttemptContext(context).getConfiguration()); List<RecordWriter> writers = new ArrayList<RecordWriter>(); for (OutputFormat format : formats) { writers.add(format.getRecordWriter(context)); } return new MultiNewRecordWriter(writers); }