edu.umd.cloud9.demo
Class DemoWordCountTuple1
java.lang.Object
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
|
Method Summary |
static void |
main(String[] args)
Runs the demo. |
main
public static void main(String[] args)
throws IOException
- Runs the demo.
- Throws:
IOException