edu.umd.cloud9.demo
Class DemoWordCountTuple1

java.lang.Object
  extended by edu.umd.cloud9.demo.DemoWordCountTuple1

public class DemoWordCountTuple1
extends Object

Demo that illustrates use of Tuple objects as intermediate keys in a MapReduce job. Input comes from the Bible+Shakespeare sample collection, packed into a SequenceFile with DemoPackTuples1. Output shows the count of words on even- and odd-length lines.

Format of the output SequenceFile: The key is a Tuple. The first field of the tuple contains a word and the second field indicates whether the word was found on a even-length or odd-length line. The value is the count of the word on either even- or odd-length lines.

See Also:
DemoWordCountTuple2, DemoWordCountJSON

Nested Class Summary
static class DemoWordCountTuple1.MyMapper
           
static class DemoWordCountTuple1.MyReducer
           
 
Method Summary
static void main(String[] args)
          Runs the demo.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
                 throws IOException
Runs the demo.

Throws:
IOException