edu.umd.cloud9.collection.medline
Class MedlineDocnoMappingBuilder

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

public class MedlineDocnoMappingBuilder
extends Configured
implements Tool, DocnoMapping.Builder

Program that builds the mapping from MEDLINE docids (PMIDs) to docnos (sequentially-numbered ints). The program takes four command-line arguments:

Here's a sample invocation:

 setenv HADOOP_CLASSPATH "/foo/cloud9-x.y.z.jar:/foo/guava-r09.jar"

 hadoop jar cloud9-x.y.z.jar edu.umd.cloud9.collection.medline.NumberMedlineCitations2 \
   -libjars=guava-r09.jar \
   /shared/collections/medline04 \
   /user/jimmylin/docid-tmp \
   /user/jimmylin/docno-mapping.dat
 

Author:
Jimmy Lin

Constructor Summary
MedlineDocnoMappingBuilder()
          Creates an instance of this tool.
 
Method Summary
 int build(Path src, Path dest, Configuration conf)
           
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

MedlineDocnoMappingBuilder

public MedlineDocnoMappingBuilder()
Creates an instance of this tool.

Method Detail

build

public int build(Path src,
                 Path dest,
                 Configuration conf)
          throws IOException
Specified by:
build in interface DocnoMapping.Builder
Throws:
IOException

run

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

Specified by:
run in interface Tool
Throws:
IOException

main

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

Throws:
Exception