LogAnalytics is the tutorial class to illustrate Gora MapReduce API.
The analytics mapreduce job reads the web access data stored earlier by the
LogManager, and calculates the aggregate daily pageviews. The
output of the job is stored in a Gora compatible data store.
See the tutorial.html file in docs or go to the
web sitefor more information.
Nested Class Summary
static class
LogAnalytics.LogAnalyticsMapper
The Mapper takes Long keys and Pageview objects, and emits
tuples of <url, day> as keys and 1 as values.
static class
LogAnalytics.LogAnalyticsReducer
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.