public void map(final Reader in, final Writer out, final Mapper mapper) throws Exception { handle(in, out, new RecordProcessor() { @Override public void processNext(RecordReader reader, Output output) throws Exception { mapper.map(reader.next(), output); } }); }
public void reduce(final Reader in, final Writer out, final Reducer reducer) throws Exception { handle(in, out, new RecordProcessor() { @Override public void processNext(RecordReader reader, Output output) throws Exception { reducer.reduce(reader.peek()[0], new KeyRecordIterator( reader.peek()[0], reader), output); } }); }
public void reduce(final Reader in, final Writer out, final Reducer reducer) throws Exception { handle(in, out, new RecordProcessor() { @Override public void processNext(RecordReader reader, Output output) throws Exception { reducer.reduce(reader.peek()[0], new KeyRecordIterator( reader.peek()[0], reader), output); } }); }
public void map(final Reader in, final Writer out, final Mapper mapper) throws Exception { handle(in, out, new RecordProcessor() { @Override public void processNext(RecordReader reader, Output output) throws Exception { mapper.map(reader.next(), output); } }); }
public void map(final Reader in, final Writer out, final Mapper mapper) throws Exception { handle(in, out, new RecordProcessor() { @Override public void processNext(RecordReader reader, Output output) throws Exception { mapper.map(reader.next(), output); } }); }
public void map(final Reader in, final Writer out, final Mapper mapper) throws Exception { handle(in, out, new RecordProcessor() { @Override public void processNext(RecordReader reader, Output output) throws Exception { mapper.map(reader.next(), output); } }); }
public void reduce(final Reader in, final Writer out, final Reducer reducer) throws Exception { handle(in, out, new RecordProcessor() { @Override public void processNext(RecordReader reader, Output output) throws Exception { reducer.reduce(reader.peek()[0], new KeyRecordIterator( reader.peek()[0], reader), output); } }); }
public void map(final Reader in, final Writer out, final Mapper mapper) throws Exception { handle(in, out, new RecordProcessor() { @Override public void processNext(RecordReader reader, Output output) throws Exception { mapper.map(reader.next(), output); } }); }
public void reduce(final Reader in, final Writer out, final Reducer reducer) throws Exception { handle(in, out, new RecordProcessor() { @Override public void processNext(RecordReader reader, Output output) throws Exception { reducer.reduce(reader.peek()[0], new KeyRecordIterator( reader.peek()[0], reader), output); } }); }
public void reduce(final Reader in, final Writer out, final Reducer reducer) throws Exception { handle(in, out, new RecordProcessor() { @Override public void processNext(RecordReader reader, Output output) throws Exception { reducer.reduce(reader.peek()[0], new KeyRecordIterator( reader.peek()[0], reader), output); } }); }