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