edu.umd.cloud9.collection.trecweb
Class TrecWebDocnoMappingBuilder

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

public class TrecWebDocnoMappingBuilder
extends Configured
implements Tool, DocnoMapping.Builder

Tool that builds the mapping from docids (String identifiers) to docnos (sequentially-numbered ints) for TREC web collections (wt10g, gov2). Run without any arguments for help. The guava jar must be included using -libjar.

Author:
Jimmy Lin

Constructor Summary
TrecWebDocnoMappingBuilder()
           
 
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)
           
 
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

TrecWebDocnoMappingBuilder

public TrecWebDocnoMappingBuilder()
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
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