Examples/WordCount/src/main/java/com/project/wordcount/WordCount.java
/**
		 * Constructs a mapper and sets the minimum number of letters
		 * required to retain a tuple. This number is the <i>k</i> in the description
		 * above.
		 * @param k Minimum number of letters in the key to output a tuple
		 */
Constructs a mapper and sets the minimum number of letters
required to retain a tuple. This number is the k in the description
above.
@param k Minimum number of letters in the key to output a tuple
Constructs a mapper and sets the minimum number of letters required to retain a tuple . This number is the k in the description above . @param k Minimum number of letters in the key to output a tuple
@Override
		public void map(OutCollector<String,String> out, Tuple<String,String> t)
		{
			String[] words = t.getValue().split(" ");
			for (String w : words)
			{
				String new_w = w.toLowerCase();
				new_w = new_w.replaceAll("[^\\w]", "");
				if (new_w.length() >= m_minLetters)
					out.collect(new Tuple<String,String>(new_w, "1"));
			}
		}
@ Override public void map ( OutCollector < String , String > out , Tuple < String , String > t ) { String [ ] words = t . getValue ( ) . split ( " " ) ; for ( String w : words ) { String new_w = w . toLowerCase ( ) ; new_w = new_w . replaceAll ( "[^\\w]" , "" ) ; if ( new_w . length ( ) >= m_minLetters ) out . collect ( new Tuple < String , String > ( new_w , "1" ) ) ; } }
Constructs a mapper and sets the minimum number of letters
 required to retain a tuple.
Constructs a mapper and sets the minimum number of letters required to retain a tuple .
// Remove punctuation and convert to lowercase //				System.out.print(w+"\t");