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 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. |
main
public static void main(String[] args)
throws IOException
- Runs the demo.
- Throws:
IOException