(Object key, Text value, Context context
)
| 78 | private Text word = new Text(); |
| 79 | |
| 80 | public void map(Object key, Text value, Context context |
| 81 | ) throws IOException, InterruptedException { |
| 82 | StringTokenizer itr = new StringTokenizer(value.toString()); |
| 83 | while (itr.hasMoreTokens()) { |
| 84 | word.set(itr.nextToken()); |
| 85 | if(stopWords.contains(word.toString())){ |
| 86 | continue; |
| 87 | } |
| 88 | context.write(word, one); |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | public static class IntSumReducer |
no test coverage detected