[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
courses:mapreduce-tutorial:step-29 [2012/02/05 19:04]
straka
courses:mapreduce-tutorial:step-29 [2012/02/05 19:09]
straka
Line 82: Line 82:
 job.setGroupingComparatorClass(IntPair.FirstOnlyComparator.class); job.setGroupingComparatorClass(IntPair.FirstOnlyComparator.class);
 </code> </code>
 +
 +====== Exercise ======
 +
 +Improve the [[.:step-28#exercise-1|inverted index exercise]] from the previous step to create for each word a //sorted// list of ''DocWithOccurrences<Text>''. Use the same approach as with the ''IntPair'' -- create a type ''TextPair'', which stores two values of type ''Text'' and let the mapper create ''(TextPair, DocWIthOccurrences<Text>'' pairs
  
 ---- ----

[ Back to the navigation ] [ Back to the content ]