This project has retired. For details please refer to its
Attic page .
LogAnalytics.LogAnalyticsMapper (Apache Gora 0.2 API)
org.apache.gora.tutorial.log
Class LogAnalytics.LogAnalyticsMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<K1,V1,K2,V2>
org.apache.gora.mapreduce.GoraMapper <Long ,Pageview ,TextLong ,org.apache.hadoop.io.LongWritable>
org.apache.gora.tutorial.log.LogAnalytics.LogAnalyticsMapper
Enclosing class: LogAnalytics
public static class LogAnalytics.LogAnalyticsMapper extends GoraMapper <Long ,Pageview ,TextLong ,org.apache.hadoop.io.LongWritable>
The Mapper takes Long keys and Pageview objects, and emits
tuples of <url, day> as keys and 1 as values. Input values are
read from the input data store.
Note that all Hadoop serializable classes can be used as map output key and value.
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
org.apache.hadoop.mapreduce.Mapper.Context
Method Summary
protected void
map (Long key,
Pageview pageview,
org.apache.hadoop.mapreduce.Mapper.Context context)
protected void
setup (org.apache.hadoop.mapreduce.Mapper.Context context)
Methods inherited from class org.apache.hadoop.mapreduce.Mapper
cleanup, run
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
LogAnalytics.LogAnalyticsMapper
public LogAnalytics.LogAnalyticsMapper ()
setup
protected void setup (org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException ,
InterruptedException
Overrides: setup
in class org.apache.hadoop.mapreduce.Mapper<Long ,Pageview ,TextLong ,org.apache.hadoop.io.LongWritable>
Throws:
IOException
InterruptedException
map
protected void map (Long key,
Pageview pageview,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException ,
InterruptedException
Overrides: map
in class org.apache.hadoop.mapreduce.Mapper<Long ,Pageview ,TextLong ,org.apache.hadoop.io.LongWritable>
Throws:
IOException
InterruptedException
Copyright © 2010-2013 The Apache Software Foundation . All Rights Reserved.