edu.umd.cloud9.example.simple
Class DemoPackJson

java.lang.Object
  extended by edu.umd.cloud9.example.simple.DemoPackJson

public class DemoPackJson
extends Object

Demo that packs the sample collection into a SequenceFile of JSONObjectWritable. The key in each record is a LongWritable indicating the record count (sequential numbering). The value in each record is a JSONObjectWritable, where the raw text is stored under the field name "text". Designed to work with DemoWordCountJson.

Author:
Jimmy Lin

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