This project has retired. For details please refer to its Attic page.
WordCount.WordCountReducer (Apache Gora 0.2 API)

org.apache.gora.examples.mapreduce
Class WordCount.WordCountReducer

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<K1,V1,K2,V2>
      extended by org.apache.gora.mapreduce.GoraReducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,String,TokenDatum>
          extended by org.apache.gora.examples.mapreduce.WordCount.WordCountReducer
Enclosing class:
WordCount

public static class WordCount.WordCountReducer
extends GoraReducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,String,TokenDatum>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
 
Constructor Summary
WordCount.WordCountReducer()
           
 
Method Summary
protected  void reduce(org.apache.hadoop.io.Text key, Iterable<org.apache.hadoop.io.IntWritable> values, org.apache.hadoop.mapreduce.Reducer.Context context)
           
 
Methods inherited from class org.apache.gora.mapreduce.GoraReducer
initReducerJob, initReducerJob, initReducerJob
 
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

WordCount.WordCountReducer

public WordCount.WordCountReducer()
Method Detail

reduce

protected void reduce(org.apache.hadoop.io.Text key,
                      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,String,TokenDatum>
Throws:
IOException
InterruptedException


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.