package ch.zhaw.mapreduce.roundtriptest;

import ch.zhaw.mapreduce.MapEmitter;
import ch.zhaw.mapreduce.MapInstruction;

/**
 * Splittet jedes Wort und Emit'ed es an MapWorkerTask
 * 
 * @author des
 * 
 */
public class WordFrequencyMapInstruction implements MapInstruction {

	/** {@inheritDoc} */
	@Override
	public void map(MapEmitter emitter, String input) {
		for (String s : input.trim().split(" ")) {
			emitter.emitIntermediateMapResult(s, "1");
		}
	}

}

@@ -268,16 +268,58 @@
 uction %7B
+%0A%09%0A%09private static final String ONE = %221%22;
 %0A%0A%09/** %7B
@@ -483,19 +483,19 @@
 sult(s, 
-%221%22
+ONE
 );%0A%09%09%7D%0A%09

use constant for string value