eu.dicodeproject.analysis.wordcount
Class WordCountReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<KEYIN,VALUEIN,KEYOUT,org.apache.hadoop.io.Writable>
org.apache.hadoop.hbase.mapreduce.TableReducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text>
eu.dicodeproject.analysis.wordcount.WordCountReducer
public class WordCountReducer
- extends org.apache.hadoop.hbase.mapreduce.TableReducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text>
Write word counts to a table, The date is the row ID, the column qualifier is the word.
| Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer |
org.apache.hadoop.mapreduce.Reducer.Context |
|
Method Summary |
void |
reduce(org.apache.hadoop.io.Text keyin,
Iterable<org.apache.hadoop.io.IntWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
|
| Methods inherited from class org.apache.hadoop.mapreduce.Reducer |
cleanup, run, setup |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WordCountReducer
public WordCountReducer()
reduce
public void reduce(org.apache.hadoop.io.Text keyin,
Iterable<org.apache.hadoop.io.IntWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
- Overrides:
reduce in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Writable>
- Throws:
IOException
InterruptedException
Copyright © 2011. All Rights Reserved.