edu.umd.cloud9.collection.trecweb
Class TrecWebDocnoMappingBuilder
java.lang.Object
org.apache.hadoop.conf.Configured
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
TrecWebDocnoMappingBuilder
public TrecWebDocnoMappingBuilder()
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