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

org.apache.gora.tutorial.log
Class LogAnalytics.LogAnalyticsReducer

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<K1,V1,K2,V2>
      extended by org.apache.gora.mapreduce.GoraReducer<TextLong,org.apache.hadoop.io.LongWritable,String,MetricDatum>
          extended by org.apache.gora.tutorial.log.LogAnalytics.LogAnalyticsReducer
Enclosing class:
LogAnalytics

public static class LogAnalytics.LogAnalyticsReducer
extends GoraReducer<TextLong,org.apache.hadoop.io.LongWritable,String,MetricDatum>

The Reducer receives tuples of <url, day> as keys and a list of values corresponding to the keys, and emits a combined keys and MetricDatum objects. The metric datum objects are stored as job outputs in the output data store.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
 
Constructor Summary
LogAnalytics.LogAnalyticsReducer()
           
 
Method Summary
protected  void reduce(TextLong tuple, Iterable<org.apache.hadoop.io.LongWritable> 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

LogAnalytics.LogAnalyticsReducer

public LogAnalytics.LogAnalyticsReducer()
Method Detail

reduce

protected void reduce(TextLong tuple,
                      Iterable<org.apache.hadoop.io.LongWritable> values,
                      org.apache.hadoop.mapreduce.Reducer.Context context)
               throws IOException,
                      InterruptedException
Overrides:
reduce in class org.apache.hadoop.mapreduce.Reducer<TextLong,org.apache.hadoop.io.LongWritable,String,MetricDatum>
Throws:
IOException
InterruptedException


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