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
org.apache.hadoop.mapreduce.Reducer<K1,V1,K2,V2>
org.apache.gora.mapreduce.GoraReducer <TextLong ,org.apache.hadoop.io.LongWritable,String ,MetricDatum >
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 classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
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.hadoop.mapreduce.Reducer
cleanup, run, setup
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
LogAnalytics.LogAnalyticsReducer
public LogAnalytics.LogAnalyticsReducer ()
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.