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 as JSON objects. 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".

See Also:
DemoPackTuples1, DemoPackTuples2

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,
                        JSONException
Runs the demo.

Throws:
IOException
JSONException