eu.dicodeproject.analysis.wordcount
Class WordCountReducer

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<KEYIN,VALUEIN,KEYOUT,org.apache.hadoop.io.Writable>
      extended by org.apache.hadoop.hbase.mapreduce.TableReducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text>
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
 
Constructor Summary
WordCountReducer()
           
 
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
 

Constructor Detail

WordCountReducer

public WordCountReducer()
Method Detail

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.