Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
- String line = value.toString();
- StringTokenizer tokenizer = new StringTokenizer(line);
- while (tokenizer.hasMoreTokens()) {
- word.set(tokenizer.nextToken());
- output.collect(word, one);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement