edu.umd.cloud9.collection.medline
Class DemoCountMedlineCitations

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by edu.umd.cloud9.collection.medline.DemoCountMedlineCitations
All Implemented Interfaces:
Configurable, Tool

public class DemoCountMedlineCitations
extends Configured
implements Tool

Simple demo program that counts all the documents in a collection of MEDLINE citations. This provides a skeleton for MapReduce programs to process the collection. The program takes three command-line arguments:

Here's a sample invocation:

 hadoop jar cloud9.jar edu.umd.cloud9.collection.medline.DemoCountMedlineCitations \
 /umd/collections/medline04.raw/ \
 /user/jimmylin/count-tmp \
 /user/jimmylin/docno.mapping
 

Author:
Jimmy Lin

Constructor Summary
DemoCountMedlineCitations()
          Creates an instance of this tool.
 
Method Summary
static void main(String[] args)
          Dispatches command-line arguments to the tool via the ToolRunner.
 int run(String[] args)
          Runs this tool.
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Constructor Detail

DemoCountMedlineCitations

public DemoCountMedlineCitations()
Creates an instance of this tool.

Method Detail

run

public int run(String[] args)
        throws Exception
Runs this tool.

Specified by:
run in interface Tool
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Dispatches command-line arguments to the tool via the ToolRunner.

Throws:
Exception