@Override protected void map(LongWritable key,Text val,Context ctx) throws IOException, InterruptedException {
  final String line=val.toString();
  final String[] words=line.split("[^a-zA-Z0-9]");
  for (  final String w : words) {
    if (w.length() <= 3)     continue;
    word.set(w);
    ctx.write(word,ONE);
  }
}

@ Override protected void map ( LongWritable key , Text val , Context ctx ) throws IOException , InterruptedException { final String line = val . toString ( ) ; final String [ ] words = line . split ( "[^a-zA-Z0-9]" ) ; for ( final String w : words ) { if ( w . length ( ) <= 3 ) continue ; word . set ( w ) ; ctx . write ( word , ONE ) ; } }
emits a entry where the key is the word and the value is always 1 .
